Commit e575296d by BellCodeEditor

save project

parent 65150cb9
Showing with 3 additions and 1 deletions
...@@ -8,6 +8,8 @@ def upgrade(): ...@@ -8,6 +8,8 @@ def upgrade():
yase.level = yase.level+1 yase.level = yase.level+1
yase.hp=yase.hp+20 yase.hp=yase.hp+20
yase.attack=yase.attack+10 yase.attack=yase.attack+10
yase=Hero("老皮鸭",540,60) yase=Hero("亚瑟",540,60)
print(yase.hp)
upgrade()
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