Commit 8c8bb373 by BellCodeEditor

save project

parent a8bc79bc
Showing with 10 additions and 7 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,level,name,hp,attack):
self.level = 9999999 self.level = level
self.hp = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 self.name = name
self.attack = 60 self.hp = hp
him = Hero() self.attack = attack
print(him.hp) him = Hero(999999999999999999999999999,"him",9999999999999999999999999999999999999999999999999999999999999999,999999999999999999999999999999999999999999999999999999999999999)
\ No newline at end of file dream = Hero(9999999999999999999999999999999999999,"dream",5,999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
print("吾王him",him.hp)
print("残血dream的攻击:",dream.attack)
\ 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