阅读背景:

python是否将没有cls或self参数的任何方法隐式地视为静态?

来源:互联网 

The following are test classes with methods not taking in cls or self arguments and dont have @staticmethod decorator. They work like normal static methods without complaining about arguments. This seems contrary to my understanding of python methods. Does python automatically treat non-class, non-instance methods as static?The following are test classes with methods not




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: