pip install colorama

from colorama import Back,Fore,Style

# 字体颜色
print(Fore.LIGHTBLUE_EX,'HelloWorLd')
# 背景颜色
print(Back.LIGHTGREEN_EX,"HelloWorld")
# 充值
print(Style.RESET_ALL,"HelloWord")
05-24 17:22