Commit 3e742b0a by BellCodeEditor

auto save

parent 3efcf382
Showing with 18 additions and 1 deletions
class hero():
class hero:
def __init__(self,name,HP,Lv):
self.name=name
self.HP=HP
self.Lv=Lv
yase=hero("亚瑟",300,5)
houyi=hero("后羿",230,6)
print("亚瑟的血量是",yase.HP)
print("后羿的血量是",houyi.HP)
#yase=hero()
#print(yase.HP)
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