关闭python3程序时,控制台出现奇怪的异常。Python3代码:fromtkinterimport*fromrandomimportrandint#Returnarandomcolorstringintheformof#RRGGBBdefgetRandomColor():color="#"forjinrange(6):color+=toHexChar(randint(0,15))#Addarandomdigitreturncolor#ConvertanintegertoasinglehexdigitinacharacterdeftoHexChar(hexValue):if0self