Commit 11c5231b by BellCodeEditor

save project

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