python如何在不同类之间调用方法【点击查看详情】
python如何在不同类之间调用方法:Python中类与类之间属性和方法的调用class A(object): #定义一个类 name='python' #类属性 def __init__(self): #实例属性 self.age=18 def a_print(self): #实例方法 print('aaa') @classmethod
相关视频/文章