Commit 3d4e24b8 by BellCodeEditor

save project

parent b3d9882f
Showing with 5 additions and 5 deletions
......@@ -3,14 +3,14 @@ class Hero:
self.level=level
self.hp=hp
self.attack=attack
def crjy():
yase.level=yase.level+1
yase.hp=yase.hp+1
yase.attack=yase.attack+1
def crjy(self):
self.level=self.level+1
self.hp=self.hp+1
self.attack=self.attack+1
yase=Hero("亚瑟",3,300,4)
crjy()
yase.crjy()
print(yase.hp)
......
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