Commit c5e5f9f8 by BellCodeEditor

save project

parent 672f6ab9
Showing with 5 additions and 0 deletions
...@@ -5,5 +5,10 @@ class Hero(): ...@@ -5,5 +5,10 @@ class Hero():
self.hp=5239641283475 self.hp=5239641283475
self.attack=3245556 self.attack=3245556
yase=Hero("亚瑟",5239641283475,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) 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