Commit 11c5231b by BellCodeEditor

save project

parent 32973527
Showing with 9 additions and 8 deletions
class Hero:
def __init__(self):
def __init__(self,name,HP,attack):
self.level=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
self.HP=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
self.attack=999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
yase=Hero()
print("亚瑟的血量为:",yase.HP)
print("亚瑟的等级为:",yase.level)
print("亚瑟的攻击力为:",yase.attack)
\ No newline at end of file
self.name=name
self.HP=HP
self.attack=attack
yase=Hero("亚瑟",99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
honglaoshi=Hero("洪老师",0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001,0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001)
print("亚瑟的血量:",yase.HP)
print("洪老师的血量:",honglaoshi.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