Commit 287642ae by BellCodeEditor

save project

parent 8f6be9df
Showing with 8 additions and 2 deletions
......@@ -8,4 +8,10 @@ yase=Hero("亚瑟",300,20)
hoyi=Hero("后羿",250,23)
#yase=Hero()
#print(yase.hp)
print(yase.hp)
\ No newline at end of file
#print(yase.hp)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+60
yase.attack=yase.attack+4
upgrade()
upgrade()
\ 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