标签: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)
标签:int 蓝色 header 绿色 head 字体 line 警告 黄色
原文地址:http://www.cnblogs.com/gqq-0504/p/7007598.html