From 12bca9c3f539e803951a2e6c0628bb18de71943d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 20 Jun 2021 17:55:27 +0800 Subject: [PATCH] save project --- diy1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diy1.py b/diy1.py index 813afd3..1eeac64 100644 --- a/diy1.py +++ b/diy1.py @@ -38,7 +38,9 @@ class Player(Hero): print("当前等级、血量、攻击力分别为:",self.level,self.hp,self.attack) def cure(self): blood = random.randint(30,50) - + + + print(self.name+"使用了治疗,血量增加:", 60,",目前的血量为:",self.hp) houyi = Player("射手", "后羿") yase = Hero("垭瑟") print('-'*1000000000) -- libgit2 0.25.0