Commit 01be4706 by BellCodeEditor

save project

parent ef93cdf4
Showing with 5 additions and 5 deletions
......@@ -9,7 +9,7 @@ def upgrade(self):
self.hp=yase.hp+50
self.attack=yase.attack+4
yase=Hero("亚瑟",300,20)
print("亚瑟血量:",yase.hp)
upgrade
upgrade
print("升级,后羿血量:",yase.hp)
\ No newline at end of file
yase.upgrade()
print("等级:",yase.level)
print("血量:",yase.hp)
print("攻击:",yase.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