Commit 558f9aa8 by BellCodeEditor

save project

parent 70850cf8
Showing with 14 additions and 0 deletions
class hero():
def __init__(self,name,hp,atk):
self.level=1
self.hp=hp
self.atk=atk
self.name=name
yase=hero("亚瑟",300,20)
y1ase=hero("后裔",250,23)
print(yase.hp)
print(y1ase.hp)
print(yase.name)
print(y1ase.name)
print(yase.atk)
print(y1ase.atk)
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