Commit 5fbeae25 by BellCodeEditor

save project

parent 65b0c34f
Showing with 10 additions and 0 deletions
......@@ -10,3 +10,13 @@ liushan=Hero("刘禅",50,999)
print(bailishoyue.hp)
print(yase.hp)
print(liushan.hp)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+999
upgrade()
upgrade()
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