Commit 21243050 by BellCodeEditor

save project

parent a026d8c9
Showing with 5 additions and 2 deletions
...@@ -45,4 +45,7 @@ yase.combat(houyi) ...@@ -45,4 +45,7 @@ yase.combat(houyi)
houyi.cure() houyi.cure()
yase.cure() yase.cure()
if choice == "q" if choice == "q"
print("游戏结束") print("游戏结束")
\ No newline at end of file def cure(self):
blood = random.randint(30,50)
self.hp = self.hp+ blood
\ No newline at end of file
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