摘要:
一个老问题: 学python时候应该都遇到过这个问题,为什么?一般的说法是把这个可变的默认参数和函数绑定在一块了 但是,怎么绑定的??? 看python文档[1],里面对def的解释: A function definition is an executable statement. Its exe 阅读全文
摘要:
先看程序: 运行结果为: i am static in the init_cls classstatic is the class Ai am in the class A!i am in the init_cls 从结果中可以看到,当我们只是使用一个类中的方法的时候(在这里使用的init_cls中 阅读全文