Commit c089f228 by BellCodeEditor

save project

parent c6930689
Showing with 5 additions and 0 deletions
......@@ -5,6 +5,11 @@ class hero:
self.hp= hp
self.attack= attack
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
yase =hero("亚瑟",300,20)
houyi =hero("后羿",240,23)
print("yase的血量值为:"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