Commit c7173878 by BellCodeEditor

save project

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