问题:
当我试图定义一个名为I
的类时,为什么PEP8会发出警告PEP8: amiguous class definition 'I'
?我找不到I
中有任何内部版本。在
mwe.py公司:
在
class I:
pass
备注:
- 对于其他单字母名称,例如
class E
,则不会出现 - 我无法访问任何其他的内置类、对象或函数
I
- 我在这个问题上的web搜索没有成功,因为“
I
”远远不是一个唯一的搜索词 - 在
PyCharm 2019.1.3 (Community Edition)
中进行了观察
Tags:
根据PEP 8: Names to avoid:
相关问题 更多 >
编程相关推荐