Commit 20d947f2 by BellCodeEditor

auto save

parent 8180d9be
Showing with 3 additions and 8 deletions
...@@ -21,15 +21,10 @@ class Hero: # 英雄类 ...@@ -21,15 +21,10 @@ class Hero: # 英雄类
print(info) print(info)
exit() exit()
class Player(Hero): class Player(Hero):
def __init__(self,name,wr): def __init__(self,name):
super().__init__(name) super().__init__(name)
self.hp = 200 self.hp=300
self.attack = 100 self.attack=50
self.wr=wr
print("英雄,")
print()
player = Player("后羿") player = Player("后羿")
......
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