Commit 10de0ffe by BellCodeEditor

save project

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