Commit e29a844a by BellCodeEditor

save project

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