Commit 783b2a02 by BellCodeEditor

save project

parent 70850cf8
Showing with 11 additions and 0 deletions
class datas:
def __init__(self,name,level,hp,attack):
self.name = name
self.level = level
self.hp = hp
self.attack = attack
ys = datas("亚瑟",1,300,20)
hy = datas("后羿",1,240,23)
print(ys.name,"\n",hy.name)
\ 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