Commit 01ec9425 by BellCodeEditor

auto save

parent 27b99437
Showing with 6 additions and 4 deletions
class hero:
def __init__(a,hp,level,attack,name):
a.hp=hp
def __init__(a,name,hp,attack):
a.level=1
a.attack=attack
a.name=name
yase=hero("亚瑟",300,20)
a.hp=hp
a.attack=attack
yase=hero('yase',300,20,)
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