当前位置:   article > 正文

linux中五颜六色的文字

linux中五颜六色的文字
输出红色
\u001b[0;31mNot running\u001b[0m\n
输出绿色
\u001b[0;32mRunning [2640]\u001b[0m\n
  • 1
  • 2
  • 3
  • 4

在这里插入图片描述
why?

解释是这样的:


The original specification only had 8 colors, and just gave them names. The SGR parameters 30-37 selected the foreground color, while 
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/228640
推荐阅读
相关标签
  

闽ICP备14008679号