Commit 8519e7a2 by BellCodeEditor

save project

parent 6b824541
Showing with 6 additions and 11 deletions
...@@ -4,19 +4,15 @@ class ij: ...@@ -4,19 +4,15 @@ class ij:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
self.mp=mp self.mp=mp
def fesf(self):
self.level= self.level+1
self.hp=self.hp+50
self.attack=self.attack+43664354354354333
kai=ij(64,12345,145) kai=ij(64,12345,145)
lan=ij(2334232,1,4567890345678) lan=ij(2334232,1,4567890345678)
print(kai.hp) print(kai.hp)
print(lan.hp) print(lan.hp)
def fg(): kai.fesf()
kai.level=kai.level+1 lan.fesf()
kai.hp=kai.hp+50
kai.attack=kai.attack+43664354354354333
def fesf():
lan.level= lan.level+1
lan.hp=lan.hp+50
lan.attack=lan.attack+43664354354354333
fg()
print(kai.hp) print(kai.hp)
fesf()
print(lan.hp) print(lan.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