Commit 3daa5d81 by BellCodeEditor

save project

parent 45ec5723
Showing with 2 additions and 2 deletions
...@@ -21,8 +21,8 @@ class Hero(): ...@@ -21,8 +21,8 @@ class Hero():
class Player(Hero): class Player(Hero):
def __init__(self,name): def __init__(self,name):
super().__init__(name) super().__init__(name)
name.hp -= 50 self.hp -= 50
name.attack += 20 self.attack += 20
yase = Player("垭瑟") yase = Player("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
while True: while True:
......
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