Commit f7253b93 by BellCodeEditor

save project

parent d6c81a0f
Showing with 17 additions and 0 deletions
class Hero:
def __init__(selt):
selt.level=1
selt.hp=300
selt.attack=20
yase=Hero("亚瑟",10000,1)
hoyi=Hero("后羿",10,1000)
print("亚瑟的血为:"yase,hp)
print("后羿的血为:"yase,hp)
def upgrade(selp):
selp.level=selp.level+1
selp.hp=selp.hp+10000000000000000000000000000000
selp.attack=selp.attack+100000000000000000000000000
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