Commit 86524dd4 by BellCodeEditor

save project

parent 11c5231b
Showing with 8 additions and 4 deletions
......@@ -5,6 +5,10 @@ class Hero:
self.HP=HP
self.attack=attack
yase=Hero("亚瑟",99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
honglaoshi=Hero("洪老师",0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001)
print("亚瑟的血量:",yase.HP)
print("洪老师的血量:",honglaoshi.HP)
\ No newline at end of file
def upgrade():
yase.level=yase.level+1
yase.HP=yase.HP+100
yase.attack=yase.attack+3
upgrade()
upgrade()
print("亚瑟升级后的血量:",yase.HP)
\ 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