码迷,mamicode.com
首页 > 编程语言 > 详细

Python字体颜色

时间:2017-06-14 11:39:43      阅读:534      评论:0      收藏:0      [点我收藏+]

标签:int   蓝色   header   绿色   head   字体   line   警告   黄色   

# 题目:文本颜色设置。
class bcolors:
HEADER=‘\033[95m‘ #紫色
OKBLUE=‘\033[94m‘ #蓝色
OKGREEN=‘\033[92m‘ #绿色
WARNING=‘\033[93m‘ #黄色
FALL=‘\033[91m‘ #红色
ENDC=‘\033[0m‘ #原色
BOLD=‘\033[1m‘ #加深色
UNDERLINE=‘\033[4m‘ #在字体下面划线
print(bcolors.OKBLUE+"警告的颜色字体?"+bcolors.UNDERLINE)

Python字体颜色

标签:int   蓝色   header   绿色   head   字体   line   警告   黄色   

原文地址:http://www.cnblogs.com/gqq-0504/p/7007598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!