Commit 6efdd4be by BellCodeEditor

save project

parent cf2a1e84
Showing with 9 additions and 3 deletions
...@@ -4,10 +4,16 @@ class Hero: ...@@ -4,10 +4,16 @@ class Hero:
seld.name=name seld.name=name
seld.hp=hp seld.hp=hp
seld.attack=attack seld.attack=attack
def upground():
beidou.level=beidou.level+1
beidou.hp=beidou.hp+56
beidou.attack=beidou.attack+40
beidou=Hero("北斗",9999999999999999999999999999999299999999999999999999999999999,999999999999999325199 beidou=Hero("北斗",9999999999999999999999999999999299999999999999999999999999999,999999999999999325199
GPS=Hero("GPS",199999,126) GPS=Hero("GPS",199999,126)
print(beidou.name+"攻击力"+str(beidou.attack))
upground()
upground()
print(beidou.name+"攻击力"+str(beidou.attack))
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