Commit 64757943 by BellCodeEditor

save project

parent 02d9ffac
Showing with 10 additions and 7 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=57 self.level=1
self.hp=0.01 self.name=name
self.attack=999999999999999999 self.hp=hp
mathteacher=Hero() self.attack=attack
print(mathteacher.hp) mathteacher=Hero('数学老师',1,99999999999999999999999999999)
\ No newline at end of file englishteacher=Hero('英语老师',999999999999999999999999999999,76.14397)
print(mathteacher.hp)
print(englishteacher.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