Commit 6d1475dc by BellCodeEditor

save project

parent 70850cf8
Showing with 13 additions and 0 deletions
class chushi:
def __init__(self,name,hp,attack):
self.hp=hp
self.level=1
self.attack=attack
self.name=name
yase=chushi("亚瑟",20,2)
houyi=chushi("后羿",15,3)
libai=chushi("李白",10,5)
zhubajie=chushi("猪八戒",30,1)
zhaoyun=chushi("赵云",20,5)
print(zhaoyun.hp))
\ 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