2018年10月23日

Python面向对象(特殊成员)

摘要: day25 __init__ 类()自动执行 __del__ __call__ 对象() 类()() 自动执行 __int__ int(对象) __str__ str() 特殊成员 对象加括号,obj()执行__call__()。 执行结果: __str__,__int__ 类型转换的时候,自动执行 阅读全文

posted @ 2018-10-23 12:32 嘟嘟嘟啦 阅读(159) 评论(0) 推荐(0) 编辑

导航