Commit cf9c0c64 by BellCodeEditor

save project

parent e328557e
Showing with 9 additions and 6 deletions
class Hero:
def __init__(a):
a.hp=1
a.level=0
a.attack=1
yade=Hero()
print(yade.hp)
def __init__(a,hp,attack,name):
a.hp=hp
a.level=1
a.attack=attack
a.name=name
yase=Hero(1,1,"王栋巍")
houyin=Hero(1,1,"王栋巍后羿")
print(houyin.name)
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