昨天它正在工作,我没有改变任何事情。
这是以前的工作:
def printOutput(col,ostr):
HEADER = '\033[95m'
BLUE = '\033[94m'
GREEN = '\033[92m'
RED = '\033[91m'
YELLOW = '\033[93m'
ENDC = '\033[0m'
ostr = str(ostr)
if(col=='RED'):
print(RED + ostr + ENDC)
elif(col=='GREEN'):
print(GREEN + ostr + ENDC)
elif(col=='BLUE'):
print(BLUE + ostr + ENDC)
elif(col=='YELLOW'):
print(YELLOW + ostr + ENDC)
else:
print(ostr)