Commit 20d947f2 by BellCodeEditor

auto save

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