Commit ef07545d by BellCodeEditor

save project

parent 10fa4387
Showing with 6 additions and 4 deletions
class iKun(): class iKun():
def __init__(self): def __init__(self,gongji,HP,dengji):
self.gongji=gongji self.gongji=gongji
self.HP=HP self.HP=HP
self.dengji=dengji self.dengji=dengji
caixukun=iKun(999,99999,100) caixukun=iKun(999,99999,100)
print(caixukun)
class heizi(): class heizi():
def __init__(self): def __init__(self,gongji,HP,dengji):
self.gongji=gongji self.gongji=gongji
self.HP=HP self.HP=HP
self.dengji=dengji self.dengji=dengji
xiaoheizi=heizi(9,9999,10) xiaoheizi=heizi(9,9999,10)
\ No newline at end of file -print(xiaoheizi)
\ 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