Commit 4e52c12b by BellCodeEditor

save project

parent 90d91315
Showing with 1 additions and 1 deletions
...@@ -26,7 +26,7 @@ class Player(Hero): # 玩家英雄 ...@@ -26,7 +26,7 @@ class Player(Hero): # 玩家英雄
def __init__(self,name,type): def __init__(self,name,type):
super().__init__(name) super().__init__(name)
self.hp=99999999999999999999999999999999999999999999999999999999 self.hp=99999999999999999999999999999999999999999999999999999999
self.attack=1 self.attack=99999999999999999999999999999999999999999999999999999999
self.type=type self.type=type
print("英雄类型是"+self.type+",英雄名称是"+self.name) print("英雄类型是"+self.type+",英雄名称是"+self.name)
print("玩家的血量值为:",self.hp) print("玩家的血量值为:",self.hp)
......
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