Commit 5fbeae25 by BellCodeEditor

save project

parent 65b0c34f
Showing with 11 additions and 2 deletions
...@@ -9,4 +9,14 @@ yase=Hero("亚瑟",50,999) ...@@ -9,4 +9,14 @@ yase=Hero("亚瑟",50,999)
liushan=Hero("刘禅",50,999) liushan=Hero("刘禅",50,999)
print(bailishoyue.hp) print(bailishoyue.hp)
print(yase.hp) print(yase.hp)
print(liushan.hp) print(liushan.hp)
\ No newline at end of file
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