Commit 3deda460 by BellCodeEditor

save project

parent 22354288
Showing with 19 additions and 0 deletions
class a:
def __init__(self,HP,ABC,LV):
self.HP=HP
self.ABC=ABC
self.LV=LV
def iii(self):
self.LV=self.LV+1
self.ABC=self.ABC+4
self.HP=self.HP+50
y=a(300,20,1)
h=a(240,25,1)
y.iii()
h.iii()
print(y.HP)
print(h.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