Commit d9f13a90 by BellCodeEditor

save project

parent acad63b7
Showing with 5 additions and 1 deletions
......@@ -20,7 +20,11 @@ class Hero: # 英雄类
info = info1+info2+info3
print(info)
exit()
def cure(self):
self.hp=self.hp+60
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用治疗术,血量增加",60,",目前血量为",self.hp)
class Player(Hero): # 玩家英雄
def __init__(self,name):
......
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