错误的字符串格式字符 (PLE1300) 源自 Pylint 代码检查工具。 作用 检查格式字符串中不支持的格式类型。 为什么这不好? 无效的格式字符串字符会在运行时导致错误。 示例 # `z` is not a valid format type. print("%z" % "1") print("{:z}".format("1"))