【Python】】print("\033[1;33m HI,Girl~ \033[0m \n");用法
例一:
print("\033[0;31m Hi, Girl~ \033[0;39m\n")
例二:
print(“中国工商银行日间客流高峰提示牌”.center(30))
for i in range(len(time)-1):
print(time[i],’:’,time[i+1],end=’’)
quant=math.ceil(int(person[i]) / 600)
print((’\033[1;33;0m '+chr(0xf04a) * quant).rjust(30) + ‘\033[0m’)
附录:颜色特效控制:
**颜色: **
none = “\033[0m”
black = “\033[0;30m”
dark_gray = “\033[1;30m”
blue = “\033