今天才知道,运行python文件可以改变终端中显示的字体颜色.比如
from colorama import Back , Fore,Style
"""导入colorama 包"""
# 蓝色字体
print(Fore.LIGHTBLUE_EX,"hellow,my readers")
# 红色字体
print(Fore.LIGHTRED_EX,"hellow,my readers")
# 绿色背景
print(Back.LIGHTGREEN_EX,"hellow,my readers")
# 黄色背景
print(Back.LIGHTYELLOW_EX,"hellow,my readers")
# 重置所有
print(Style.RESET_ALL,"hellow,my readers")
的效果就是这样式的:
你,学会了吗???