Commit e29a844a by BellCodeEditor

save project

parent 4425a520
Showing with 9 additions and 7 deletions
class HERO:
def __init__(self):
self.HP=999999999999999
self.level=99999999999999
self.attack=99999999999999
yase=HERO()
print(yase.HP)
\ No newline at end of file
def __init__(self,HP,level,attack):
self.HP=HP
self.level=level
self.attack=attack
yase=HERO("张三",30000000000000,999999999999999999999999999999999999)
houyi=HERO("马牛逼"999999999999999999999999,999999999999999999999999)
print("张三的血量",yase.HP)
print("马牛逼的血量",houyi.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