Commit 7d4e9cb4 by BellCodeEditor

save project

parent b09e0866
Showing with 1 additions and 7 deletions
...@@ -7,13 +7,8 @@ class Hero: ...@@ -7,13 +7,8 @@ class Hero:
ysae=Hero('垭瑟',300,20) ysae=Hero('垭瑟',300,20)
def upgrade(): def upgrade():
yase.lever=yase.level.level+1 yase.lever=yase.level.level+1
yase.hp=self.hp+50
yase.hp
yase.lever=yase.level.level+1 yase.lever=yase.level.level+1
houyi=Hero('后羿',240,23) houyi=Hero('后羿',240,23)
print('垭瑟的血量:',ysae.hp) print('垭瑟的血量:',ysae.hp)
print('后羿的血量:',ysae.hp) print('后羿的血量:',ysae.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