Commit 9e215441 by BellCodeEditor

auto save

parent c9f6814c
Showing with 1 additions and 2 deletions
......@@ -19,7 +19,7 @@ class Hero: # 英雄类
info3 = enemy.name+"阵亡,游戏结束"
info = info1+info2+info3
print(info)
exit("black")
exit()
class Player(): # 玩家英雄
......@@ -28,7 +28,6 @@ class Player(): # 玩家英雄
self.name = name
self.hp = 200
self.attack = 50
print("弘毅")
player = Player("后羿")
print("玩家的血量值为:",player.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