Commit 01be4706 by BellCodeEditor

save project

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