Commit f518ae35 by BellCodeEditor

save project

parent 59c5948f
Showing with 8 additions and 1 deletions
class Hero(object):
class Hero:
def __init__(self, name,hp,attack):
self.level = 1
self.hp = hp
......@@ -9,5 +9,11 @@ class Hero(object):
yase = Hero("垭瑟",300000000000,1000000000000000)
houyi= Hero("后羿",100000000000000000000000000000000000000000000000000000000000000000000000,10)
def fuck():
yase.hp+=100000000000000000000000
yase.attack+=999999999999999
yase.level+=1
fuck()
print(yase.hp)
print(houyi.hp)
\ 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