Commit 8f6877ac by BellCodeEditor

save project

parent c1d06816
Showing with 2 additions and 1 deletions
...@@ -12,6 +12,6 @@ def upgrade(self): ...@@ -12,6 +12,6 @@ def upgrade(self):
houyi=Hero('后羿',300,20) houyi=Hero('后羿',300,20)
houyi.upgrade() houyi.upgrade()
print('等级为'houyi.level) print('等级为',houyi.level)
print('血量是',houyi.hp) print('血量是',houyi.hp)
print('攻击力是'houyi.attack) print('攻击力是'houyi.attack)
\ 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