Commit 63683d67 by BellCodeEditor

save project

parent 138a7a16
Showing with 2 additions and 2 deletions
...@@ -6,8 +6,8 @@ class Hero: ...@@ -6,8 +6,8 @@ class Hero:
self.attack=attack self.attack=attack
def updata(self): def updata(self):
self.level=self.level+1000 self.level=self.level+1000
self.up=self.up+9999 self.hp=self.hp+9999
self.up=self.attack+99999 self.hp=self.attack+99999
yase=Hero("亚瑟",300,20) yase=Hero("亚瑟",300,20)
houyi=Hero("后羿",250,25) houyi=Hero("后羿",250,25)
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