Python 调 API 时 KeyError: slice(0, None, None) 的排查与修复 记录一次 KeyError 异常定位过程,梳理常见错误写法和防御性编程方式。 2026-06-26 Python KeyError API 异常处理