Commit 45ec5723 by BellCodeEditor

save project

parent 4ed635ad
Showing with 4 additions and 3 deletions
...@@ -19,9 +19,10 @@ class Hero(): ...@@ -19,9 +19,10 @@ class Hero():
print(info) print(info)
exit() exit()
class Player(Hero): class Player(Hero):
super().__init__(name) def __init__(self,name):
name.hp -= 50 super().__init__(name)
name.attack += 20 name.hp -= 50
name.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