python 中的类 Owell 2019-06-17 127 阅读1分钟 1、继承基本语法:class sub(parent):pass 2、super关键字 3、def str(self): 方法 可以直接利用print输出类对象 4、加减乘除操作