Commit 99f7dfcb by BellCodeEditor

save project

parent 6cf9a7f0
Showing with 6 additions and 5 deletions
...@@ -13,10 +13,11 @@ class Husky(Dog): ...@@ -13,10 +13,11 @@ class Husky(Dog):
super().__init__() super().__init__()
self.skin = "white and black" self.skin = "white and black"
def run(self):
super().run()
print("狗狗快跑")
class Husky(Dog): # 哈士奇类
def __init__(self):
coco = Husky() coco = Husky()
print(coco.skin) print(coco.skin)
\ No newline at end of file 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