Commit 8e9277c6 by BellCodeEditor

save project

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