摘要: 1.类的实例化返回值 1 class Foo(object): 2 def __init__(self): 3 pass 4 5 obj=Foo() 6 print(obj) 返回值:<__main__.Foo object at 0x0000000001E9AE48> 2.__str__方法: 1 阅读全文
posted @ 2017-09-27 11:55 Zoe233 阅读(375) 评论(0) 推荐(0) 编辑