首页 > 代码库 > day9.输出背景色

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.输出背景色