Commit cc6bb19c by BellCodeEditor

auto save

parent 70850cf8
Showing with 12 additions and 0 deletions
class hero:
def __init__(a,name,hp,att):
a.level=1
a.name=name
a.hp=hp
a.att=att
zhaoyun=hero("赵云",300,50)
houyi=hero("后羿",200,80)
print(zhaoyun.att)
print(houyi.att)
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