python 给字符串加颜色时间:2023-03-09 22:13:35 msg = '\033[41;1m字符串内容\033[0m' print(msg) # \033[41;1m起始位置 改变41数值就是改变其他颜色,、033[0m 结束位置