本来是按照百度搜到的教程来为print输出添加颜色
然后bing了下,已经有封装好的包了,就是python-blessings
效果如图
API网址:https://blessings.readthedocs.io/en/latest/