Python控制台输出字体颜色

为什么80%的码农都做不了架构师?>>>   hot3.png

Python

print("\033[93m 注意:这里的LOG_NUMBER不能为空 \033[0m")

\033[93m后面必须有空格;\033[0m前面必须有空格

shell效果

shell效果

参考

Print in terminal with colors? python控制台颜色输出以及字符串格式化输出

转载于:https://my.oschina.net/fxtxz2/blog/1860151

你可能感兴趣的:(Python控制台输出字体颜色)