Commit bf9d5bc6 by BellCodeEditor

save project

parent 1a9feaa0
Showing with 3 additions and 3 deletions
......@@ -7,8 +7,8 @@ class Hero:
yase=Hero("亚瑟",3000,0)
houyi=Hero('后裔',1,3000)
def upgrade():
yase.hp=upgrade+20
yase.attack=upgrade+2000
yase.hp=yase.hp+20
yase.attack=yase.attack+2000
upgrade()
print(yase.hp)
print(houyi.attack)
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