Commit 78f8b655 by BellCodeEditor

save project

parent fc9a4ace
Showing with 4 additions and 4 deletions
......@@ -14,7 +14,7 @@ class Husky(Dog): # 哈士奇类
def __init__(self):
super().__init__()
self.skin = "黑"
coco = Husky()
print("小狗coco创建成功,它是"+coco.size+"的")
print("coco是"+coco.skin+"色的,它有"+str(coco.footNum)+"条腿,"+str(coco.eyeNum)+"个眼睛"+str(coco.head)+"个头,"+str(coco.earsNum)+"个耳朵,它的体型很"+coco.size)
print(coco.run())
coco = Husky()
\ No newline at end of file
print("coco是"+coco.skin+"色的,它有"+str(coco.footNum)+"条腿,"+str(coco.eyeNum)+"个眼睛"+str(coco.head)+"个头,"+str(coco.earsNum)+"个耳朵")
print(coco.run())
\ No newline at end of file
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