Commit 0b3ccbf2 by BellCodeEditor

save project

parent 6cce4951
Showing with 3 additions and 3 deletions
...@@ -7,7 +7,7 @@ class Dog: # 狗类 ...@@ -7,7 +7,7 @@ class Dog: # 狗类
self.skin = "white" self.skin = "white"
def run(self): def run(self):
print("狗狗飞快的跑起来") print("狗狗飞起来")
class Husky(Dog): # 哈士奇类 class Husky(Dog): # 哈士奇类
...@@ -16,4 +16,4 @@ class Husky(Dog): # 哈士奇类 ...@@ -16,4 +16,4 @@ class Husky(Dog): # 哈士奇类
self.skin = "black" self.skin = "black"
coco = Husky() coco = Husky()
print(coco.skin) print(coco.head)
\ No newline at end of file \ 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