Commit 45a26996 by BellCodeEditor

save project

parent 08d89fc1
Showing with 8 additions and 1 deletions
......@@ -15,8 +15,15 @@ class Husky(Dog): # 哈士奇类
super().__init__(name)
self.skin = "red"
class keji(Dog):
def __init__(self):
super().__init__()
self.head = 9
coco = Husky('coco')
coco.run()
李文杰 = Husky('李文杰')
李文杰.run()
print(coco.skin)
print(coco.head)
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