【发布时间】:2011-07-06 20:12:47
【问题描述】:
基本上,我使用 python 在终端中打印出一些信息,其中一些文本包含重音字符,例如泰语。当我使用时试试这个。
#!/usr/bin/python
#coding: UTF-8
#test.py
import sys
print "\033[41mลองดู\033[0m" #there is an accented character at the end.
因此整个句子没有背景色。终端省略了句子的最后一个字符。有没有办法解决这个问题?非常感谢。
【问题讨论】:
-
您的问题中没有任何与 Bash 相关的内容。
标签: python bash colors background