Commit f7b8e78b by BellCodeEditor

save project

parent b1f9253b
Showing with 9 additions and 4 deletions
...@@ -4,12 +4,17 @@ class hero(): ...@@ -4,12 +4,17 @@ class hero():
salf.name=name salf.name=name
salf.hp=hp salf.hp=hp
salf.attack=attack salf.attack=attack
def upgrade(salf):
salf.leve1+=9999999999
salf.hp+=9999999999999
salf.attack+=99999999999999999
def look(name):
salf.leve1+=9999999999
salf.hp+=9999999999999
salf.attack+=99999999999999999
lao6=hero("老6",999999999999999,9999999999999) lao6=hero("老6",999999999999999,9999999999999)
lao8=hero("老8",999,999) lao8=hero("老8",999,999)
def upgrade(heroname):
heroname.leve1+=9999999999
heroname.hp+=9999999999999
heroname.attack+=99999999999999999
upgrade(lao6) upgrade(lao6)
print(lao6.hp,lao6.leve1,lao6.name) print(lao6.hp,lao6.leve1,lao6.name)
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