Commit 9c2fe94f by BellCodeEditor

save project

parent cf2d94af
Showing with 2 additions and 3 deletions
......@@ -13,6 +13,5 @@ class Dog: # 狗类
class Husky(Dog): # 哈士奇类
def __init__(self,weight):
super().__init__()
self.weight=weight
Husky
print(Husky.weight)
self.weight=80
print(str(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