python类属性不能用作构造函数的参数?在python3中,我发现class属性可以用作__init__()函数中的参数,如下所示: 文件测试.py地址: class Foo: var1 = 23333 def __init ...2024-07-01 已阅读: n次