Commit 6dcadd55 by BellCodeEditor

save project

parent 0d3ab666
Showing with 14 additions and 2 deletions
......@@ -4,7 +4,18 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
mathteacher=Hero('数学老师',1,99999999999999999999999999999)
englishteacher=Hero('英语老师',999999999999999999999999999999,76.14397)
mathteacher=Hero('数学老师',1,9994999929999)
englishteacher=Hero('英语老师',99999976999999,76.14397)
def upgrade():
mathteacher.level+=1
mathteacher.hp+=2
mathteacher.attack+=0.001
def upgrade_1():
englishteacher.level+=1
englishteacher.hp+=0.00001
englishteacher.attack+=11
upgrade()
print(mathteacher.hp)
upgrade_1()
print(englishteacher.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