Commit 544acfa0 by BellCodeEditor

save project

parent 2a2939ce
Showing with 1 additions and 1 deletions
...@@ -18,7 +18,7 @@ class Hero: # 英雄类 ...@@ -18,7 +18,7 @@ class Hero: # 英雄类
info = info1+info2+info3 info = info1+info2+info3
print(info) print(info)
exit() exit()
def cure(self): def cure(self):
self.hp=self.hp+30 self.hp=self.hp+30
if self.hp>self.max_hp: if self.hp>self.max_hp:
self.hp=self.max_hp self.hp=self.max_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