我知道永远不要使用内置函数名作为变量标识符.
但有没有理由不将它们用作属性或方法标识符?
例如,在我自己的类中编写my_object.id = 5或定义实例方法是否安全dict?
my_object.id = 5
dict
python namespaces naming-conventions reserved-words python-3.x
namespaces ×1
naming-conventions ×1
python ×1
python-3.x ×1
reserved-words ×1