水水2017-08-11发布
使用模块函数比使用静态方法更加常见。 #!/usr/bin/env python class TestMethod(object): def foo(self,x): #定义类中的普通函数,传递参数为self,也...