Commit 9cb3fbd7 by BellCodeEditor

save project

parent 17db50ac
Showing with 8 additions and 3 deletions
...@@ -5,6 +5,10 @@ class Hero: ...@@ -5,6 +5,10 @@ class Hero:
a.hp=hp a.hp=hp
a.attack=attack a.attack=attack
yase=Hero("亚瑟",9999999999999999999999999,69999999999999999999999999999999) yase=Hero("亚瑟",9999999999999999999999999,69999999999999999999999999999999)
def b(): def app(a):
yase.level=yase.leve-99999999999999999 a.level=yase.leve-99999999999999999
yase.hp=yase.hp-999999999999999999999999 a.hp=yase.hp-999999999999999999999999
a.attack=attack-9999999999999999999999999999999999999
yase=Hero("亚瑟",6789)
yase.app()
print(yase.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