Commit cf2d94af by BellCodeEditor

auto save

parent 9f8d7b50
Showing with 4 additions and 7 deletions
......@@ -11,10 +11,8 @@ class Dog: # 狗类
class Husky(Dog): # 哈士奇类
def __init__(self):
def __init__(self,weight):
super().__init__()
self.skin="black"
coco = Husky()
print(str(coco.footNum)+str(coco.eyeNum)+str(coco.head)+str(coco.earsNum)+str(coco.skin)+"狗狗飞快的跑起来")
\ No newline at end of file
self.weight=weight
Husky
print(Husky.weight)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment