Commit 9210fc59 by BellCodeEditor

save project

parent dd09090a
Showing with 5 additions and 4 deletions
......@@ -24,10 +24,11 @@ class Hero: # 英雄类
class player(Hero): # 玩家英雄
def __init__(self,name):
self.level=1
self.hp=250
self.attack=40
self.name=name
super().__int__(name)
self.hp=200
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