Commit 1a91c9c6 by BellCodeEditor

save project

parent 19fa39bb
Showing with 3 additions and 3 deletions
...@@ -5,9 +5,9 @@ class Hero: ...@@ -5,9 +5,9 @@ class Hero:
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
def upgrade(self): def upgrade(self):
self.level=yase.level+1 self.level=self.level+1
self.hp=yase.hp+121216 self.hp=self.hp+121216
self.attack=yase.attack+000000000 self.attack=self.attack+000000000
self=Hero("亚瑟",100,120) self=Hero("亚瑟",100,120)
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