Commit c7173878 by BellCodeEditor

save project

parent 50afa6e7
Showing with 9 additions and 7 deletions
class Xiaoheizi: class Xiaoheizi:
def __init__(self): def __init__(self,name,hp,attack):
self.level=999 self.level=1
self.hp=99999 self.hp=hp
self.attack=999 self.attack=attack
caixukun=Xiaoheizi() self.name=name
print(caixukun.hp) caixukun=Xiaoheizi('ikun',666,99999999999999)
\ No newline at end of file zhenaifen=Xiaoheizi('鸽鸽',1,1)
heizi=Xiaoheizi('只因你太美',111,99999)
print(caixukun)
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