Commit 7baf5113 by BellCodeEditor

save project

parent 122db624
Showing with 3 additions and 3 deletions
......@@ -27,6 +27,6 @@ class Player(Hero): # 玩家英雄
super().__init__(name)
self.hp=10000000000000000000000000000000000000000000000000000000000000000000
self.attack=95
'刘备' = Player("后羿")
print("刘备的血量值为:",刘备.hp)
print("刘备的攻击力为:",刘备.attack)
liubei = Player("刘备")
print("刘备的血量值为:",liubei.hp)
print("刘备的攻击力为:",liubei.attack)
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