Commit 2420b708 by BellCodeEditor

save project

parent cf469538
Showing with 9 additions and 2 deletions

200 KB | W: | H:

362 KB | W: | H:

bg.png
bg.png
bg.png
bg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -9,4 +9,11 @@ yase=Hero('亚瑟',300,20)
print('yase的血量为:',yase.hp)
print(yase.attack)
hoyi=Hero('后羿',240,23)
print('hoyi的血是',hoyi.hp)
\ No newline at end of file
print('hoyi的血是',hoyi.hp)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
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