Commit 0eda6bf9 by BellCodeEditor

save project

parent 481858d6
Showing with 10 additions and 0 deletions
class Hero:
def __init__(seif,name,hp,attack):
seif.level=1
seif.hp=hp
seif.attack=attack
yase=Hero("亚瑟",300,30)
honyi=Hero("后羿",250,30)
print("亚瑟的血量",yase.hp)
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