您的位置:首页 > 编程语言 > Python开发

color the python console text

2015-03-09 10:54 316 查看
//install termcolor module
cd \
cd python27
cd scripts
pip install termcolor
pip install colorama

//python scripts for testing
from termcolor import colored
print(colored("Hello world in red style!", 'red'))

>>> from termcolor import *
>>> import colorama
>>> colorama.init()
>>> cprint('hello', 'red')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: