Commit 8e9277c6 by BellCodeEditor

save project

parent 306e1670
Showing with 6 additions and 3 deletions
...@@ -4,10 +4,12 @@ class hero: ...@@ -4,10 +4,12 @@ class hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=hero('yase',4800,10000000000000000000000000000000000000000000000000000000)
def upgrad(): def upgrad():
self.level= yase.level+1 self.level= yase.level+1
self.hp= yase.hp+50 self.hp= yase.hp+50
self.attack= yase.attack+4 self.attack= yase.attack+4
upgrad() yase=hero('yase',4800,10000000000000000000000000000000000000000000000000000000)
upgrad()
yase.upgrad()
print(houyi)
\ 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