python终端不能显示彩色文本
解决方法:
1、安装colorama:pip install colorama
2、导入colorama:from colorama import init, Fore, Back
3、编写代码
init(convert=True) # Initialize colorama module
print(Fore.RED + '111111' + Fore.RESET) # Red colored output
print(Back.GREEN + 'Your Text' + Back.RESET) # Green Backgroung Output
效果如下: