小编use*_*921的帖子

为什么termcolor输出控制字符而不是Windows控制台中的彩色文本?

我刚刚在Windows上为Python 2.7 安装了termcolor.当我尝试打印彩色文本时,我会得到颜色代码.

from termcolor import colored
print colored('Text text text', 'red')
Run Code Online (Sandbox Code Playgroud)

结果如下:

Windows控制台窗口的屏幕截图:

我在远程管理器上获得相同的结果,当我尝试将脚本作为独立应用程序运行时.

python windows windows-console termcolor

15
推荐指数
2
解决办法
1万
查看次数

我在Qt中遇到错误:SIGILL ERROR

尝试将QString与空字符串进行比较时,我遇到了错误.

QString S = "abc";
if (S != "") // Sigill on this line
{
qDebug("ok");
}
Run Code Online (Sandbox Code Playgroud)

qstring qt

2
推荐指数
1
解决办法
955
查看次数

标签 统计

python ×1

qstring ×1

qt ×1

termcolor ×1

windows ×1

windows-console ×1