day9.输出背景色
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了day9.输出背景色相关的知识,希望对你有一定的参考价值。
print("==========字体==========")
print("Hello world,how are you")
print("\033[29;1mHello world,how are you \033[0m") #灰
print("\033[30;1mHello world,how are you \033[0m") #白
print("\033[31;1mHello world,how are you \033[0m") #红
print("\033[32;1mHello world,how are you \033[0m") #绿
print("\033[33;1mHello world,how are you \033[0m") #黄
print("\033[34;1mHello world,how are you \033[0m") #蓝
print("\033[35;1mHello world,how are you \033[0m") #紫
print("\033[36;1mHello world,how are you \033[0m") #青
print("==========背景==========")
print("\033[41;1mHello world,how are you \033[0m") #红
print("\033[42;1mHello world,how are you \033[0m") #绿
print("\033[43;1mHello world,how are you \033[0m") #黄
print("\033[44;1mHello world,how are you \033[0m") #蓝
print("\033[45;1mHello world,how are you \033[0m") #紫
print("\033[46;1mHello world,how are you \033[0m") #青
以上是关于day9.输出背景色的主要内容,如果未能解决你的问题,请参考以下文章