摘要: # class F: # pass # class A(F): # pass # class B(A): # pass # class C: # pass # obj1 = B() # print(isinstance(obj1,B)) # print(isinstance(obj1,A)) # print(isinstance(obj1,F)) # isinst... 阅读全文
posted @ 2018-07-05 09:35 小小猎魔人 阅读(181) 评论(0) 推荐(0) 编辑
摘要: # 1,初识属性: # class A: # def __init__(self, name, weight, height): # self.name = name # self.__weight = weight # self.__height = height # # @property # 属性 # def bmi... 阅读全文
posted @ 2018-07-05 09:29 小小猎魔人 阅读(213) 评论(0) 推荐(0) 编辑