Commit fdf8ae3f by BellCodeEditor

save project

parent 396db9f9
Showing with 6 additions and 5 deletions
...@@ -11,9 +11,9 @@ class Hero: ...@@ -11,9 +11,9 @@ class Hero:
self.hp=1145140000000000000000000000000000000000000000000000 self.hp=1145140000000000000000000000000000000000000000000000
self.attack=314159265358000000000000000000000000000000000 self.attack=314159265358000000000000000000000000000000000
梦泪=Hero(name,hp,attack) 梦泪=Hero(name,hp,attack)
def upgrade(): def upgrade(self):
cxk.level=cxk.level+1 self.level=cxk.level+1
cxk.hp=cxk.hp+114514 self.hp=cxk.hp+114514
cxk.attack=cxk.attack+1919810 self.attack=cxk.attack+1919810
upgrade() print(cxk.attack)
\ No newline at end of file
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