for the message you have to do:
message = "{0}: {1}".format(self.name, self.msg)
then in your while loop you do:
while True:
#do something
break
that iterate only one time, so if you whant only one repetition you have to do:
#do something
esle if you want to do it more times you can use a for x in range()
loop or a while loop where you stop if a condition ocurres
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…