Commit fd87854a by BellCodeEditor

save project

parent 0929e0ca
Showing with 6 additions and 6 deletions
...@@ -8,10 +8,10 @@ yase=Hero("亚瑟",3000000000000000,999999999999999999999999) ...@@ -8,10 +8,10 @@ yase=Hero("亚瑟",3000000000000000,999999999999999999999999)
houyi=Hero("后羿",1,0.01) houyi=Hero("后羿",1,0.01)
print(yase.hp) print(yase.hp)
print(houyi.hp) print(houyi.hp)
def up(): def up(self):
yase.level=yase.level+1 self.level=self.level+1
yase.hp=yase.hp+10000000000000000000000 self.hp=self.hp+10000000000000000000000
yase.attack=yase.attack+9999999999999999999999999999999999999999999999999999999 self.attack=self.attack+9999999999999999999999999999999999999999999999999999999
up() yase.up()
up() yase.up()
print(yase.attack) print(yase.attack)
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