Commit 6029ccff by BellCodeEditor

save project

parent f4aba55e
Showing with 7 additions and 9 deletions
......@@ -4,14 +4,13 @@ class a:
self.hp=hp
self.attack=attack
self.name=name
def e():
self.level=self.level+1
self.hp=self.hp+1000
self.attack=self.attack+300
yase=a("yase",300,2)
houyi=a("houyi",400,6)
yase.e()
print(yase.hp)
def e():
yase.level=yase.level+1
yase.hp=yase.hp+1000
yase.attack=yase.attack+300
e()
e()
print(yase.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