Commit 74fdaf2e by BellCodeEditor

save project

parent 4395d546
Showing with 7 additions and 7 deletions
......@@ -4,11 +4,11 @@ class Hero():
self.name=name
self.hp=5239641283475
self.attack=3245556
yase=Hero("亚瑟",5239641283475,3245556)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+10000000000000
yase.attack=yase.attack+1000000
print(yase.hp)
print(yase.attack)
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+10000000000000
self.attack=self.attack+1000000
hero=Hero("hero",5239641283475,3245556)
print(hero.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