About self and class
摘要:
From http://www.runoob.com/python3/python3-class.html 1. 很多类都倾向于将对象创建为有初始状态的。因此类可能会定义一个名为 __init__() 的特殊方法(构造方法) 2. 类定义了 __init__() 方法的话,类的实例化操作会自动调用 阅读全文
posted @ 2017-12-28 17:21 cdekelon 阅读(167) 评论(0) 推荐(0)
浙公网安备 33010602011771号