Commit 554b1a9d by BellCodeEditor

save project

parent d493d152
Showing with 15 additions and 0 deletions
class Helo:
def __init__(selp,name,hp,attack):
selp.level=1
selp.hp=hp
selp.attach=attack
hantian=Helo('寒天',3000,999)
zuanfeng=Helo('钻风',2400,2000)
yunying=Helo('云影',1000,500)
print(hantian.hp)
print(zuanfeng.hp)
print(yunying.hp)
print(hantian.attach)
print(zuanfeng.attach)
print(yunying.attach)
\ 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