Commit 15e1444b by BellCodeEditor

save project

parent de4832c0
Showing with 4 additions and 4 deletions
...@@ -20,10 +20,9 @@ class Hero(object): ...@@ -20,10 +20,9 @@ class Hero(object):
print(info) print(info)
exit() exit()
class Player(Hero): class Player(Hero):
def super__init__(self,name): def __init__(self,name):
self.level = 1 super().__init__(name)
self.hp = 200 self.hp = 200
self.attack = 50 self.attack = 50
self.name=name
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
\ No newline at end of file
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