摘要: a). 普通方式 class Foo(object): def func(self): print 'hello wupeiqi' def func(self): print 'hello wupeiqi' b).特殊方式(type类的构造函数) Foo = type('Foo',(object,) 阅读全文
posted @ 2018-12-22 15:33 coding天荒地老 阅读(249) 评论(0) 推荐(0) 编辑