Commit 10fd3994 by BellCodeEditor

save project

parent f3a445a6
Showing with 7 additions and 2 deletions
......@@ -5,6 +5,11 @@ class hero():
salf.hp=hp
salf.attack=attack
lao6=hero("老6",999999999999999,9999999999999)
print(lao6.hp)
lao8=hero("老8",999,999)
print(lao8.hp)
def upgrade(heroname):
heroname.leve1+=9999999999
heroname.hp+=9999999999999
heroname.attack+=99999999999999999
upgrade(lao6)
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