首页 > 编程语言 > 详细

color the python console text

时间:2015-03-09 12:30:22      阅读:273      评论:0      收藏:0      [点我收藏+]

 

 

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

 

color the python console text

原文:http://www.cnblogs.com/zyip/p/4323033.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!