Commit da42a96d by BellCodeEditor

save project

parent 98c2e049
Showing with 6 additions and 0 deletions
...@@ -5,6 +5,12 @@ class hero: ...@@ -5,6 +5,12 @@ class hero:
self.hp=hp self.hp=hp
self.attack= attack self.attack= attack
def upgrade():
yase.level=yase.hp+50
yase.attack=yase.attack+4
yase =Hero("垭瑟"30020) yase =Hero("垭瑟"30020)
huoyi =hero("后羿"24023) huoyi =hero("后羿"24023)
print("垭瑟的血量为:"yase . hp) print("垭瑟的血量为:"yase . hp)
......
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