Commit fbb8ebc5 by BellCodeEditor

save project

parent 0125f9ae
Showing with 7 additions and 0 deletions
......@@ -3,5 +3,11 @@ class AaAa:
self.hp=hp
self.level=1
self.gj=gj
def sj(self):
self.hp=self.hp+100
self.level=self.level+1
self.gj=self.gj+50
yase=AaAa(300,50)
houyi=AaAa(250,60)
yase.sj()
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