Commit 7baf5113 by BellCodeEditor

save project

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