Commit 5fcf06c2 by BellCodeEditor

save project

parent 04ee5f8e
Showing with 5 additions and 1 deletions
...@@ -5,8 +5,12 @@ class hero: ...@@ -5,8 +5,12 @@ class hero:
self.attack=attack self.attack=attack
yase=hero('亚瑟',300,20) yase=hero('亚瑟',300,20)
yase=hero('后羿',250,99999) yase=hero('后羿',250,99999)
print("血量",yase.hp)
def upgrade()
yase.leve1=yase.leve+1
yase.hp300=yase.hp+50
yase.attack=yase.attack+4
upgrade
......
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