注意:stu1=Luffy(‘xing‘,19) 和 Luffy.__init__(stu1,‘xing‘,19) 是等价的。
查看类的使用方法
python类的书写、调用
原文:https://www.cnblogs.com/ironan-liu/p/11970546.html