【发布时间】:2014-03-18 11:45:00
【问题描述】:
我刚刚在 Windows 上为 Python 2.7 安装了 termcolor。当我尝试打印彩色文本时,我得到的是颜色代码。
from termcolor import colored
print colored('Text text text', 'red')
结果如下:
当我尝试将脚本作为独立应用程序运行时,我在 Far Manager 上获得了相同的结果。
【问题讨论】:
标签: python windows windows-console termcolor