Commit f2649693 by BellCodeEditor

save project

parent 09b5aa56
Showing with 11 additions and 1 deletions
......@@ -21,8 +21,18 @@ class Hero: # 英雄类
print(info)
exit()
class Hero
def__init__(self,name)
self.level=1
self.attack=40
selfname=name
class Player(HERO): # 玩家英雄
class Player(Hero): # 玩家英雄
def __init__(self,name):
super().__init__(name)
self.hp=200
......
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