pyUnit-color
日志处理模块集合
安装
pip install pyunit-color
控制台打印颜色
from pyunit_color import FontColor
def test():
print(FontColor.red('打印红色'))
print(FontColor.green('打印绿色'))
print(FontColor.blue('打印蓝色'))
print('不打印颜色')
if __name__ == '__main__':
test()