封装 class Hankai: # 大写字母开头代表类,小写则为函数 # 属性 age = 21 weight = 85 mouth = 'big' live = True # 方法 def climb(self): print('一点一点网上趴') def run(self): print('上坡了,快加油门') 继承 多态