Commit 27b99437 by BellCodeEditor

auto save

parent c5fb3a39
Showing with 7 additions and 5 deletions
class hero:
def __init__(a):
a.hp=300
def __init__(a,hp,level,attack,name):
a.hp=hp
a.level=1
a.attack=20
yase=hero()
\ No newline at end of file
a.attack=attack
a.name=name
yase=hero("亚瑟",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