我刚刚在Windows上为Python 2.7 安装了termcolor.当我尝试打印彩色文本时,我会得到颜色代码.
from termcolor import colored
print colored('Text text text', 'red')
Run Code Online (Sandbox Code Playgroud)
结果如下:

我在远程管理器上获得相同的结果,当我尝试将脚本作为独立应用程序运行时.
尝试将QString与空字符串进行比较时,我遇到了错误.
QString S = "abc";
if (S != "") // Sigill on this line
{
qDebug("ok");
}
Run Code Online (Sandbox Code Playgroud)