Commit 3d4e24b8 by BellCodeEditor

save project

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