Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
也许我有错误的印象,但是class对象的父类不会是一个类吗?如果是这样,为什么 Python 的作者不遵循良好的样式约定并将object类大写以Object将其表示为类对象?这是一堂课吗?
class
object
Object
它遵循不首字母大写的内置类型(str、int、float、complex、file、type等)的约定。
str
int
float
complex
file
type