color the python console text

 

 

//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')

 

posted @ 2015-03-09 10:54  zyip  阅读(361)  评论(0编辑  收藏  举报