Commit 9e215441 by BellCodeEditor

auto save

parent c9f6814c
Showing with 2 additions and 3 deletions
......@@ -19,16 +19,15 @@ class Hero: # 英雄类
info3 = enemy.name+"阵亡,游戏结束"
info = info1+info2+info3
print(info)
exit("black")
exit()
class Player(): # 玩家英雄
def __init__(self,name):
self.level = 1
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