Commit 9c570c5b by BellCodeEditor

save project

parent 37871540
Showing with 9 additions and 0 deletions
......@@ -9,3 +9,11 @@ houyi=Hero("后羿",230,25)
print(yase.level)
print("亚瑟的血量是:",yase.hp)
print("后羿的血量是:",yase.hp)
def upgrade():
yase.level+=1
yase.hp+=50
yase.attack+=4
upgrade()
upgrade()
upgrade()
print("亚瑟的血量是:",yase.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