这里\033[是转义子列,表示后面接的是颜色代码(亮度;背景色;前景色)
01是高亮度, 不写是低亮度。40是背景色,40:黑,41:红:42:绿,43:黄,44:青,45:蓝,47:白。
32是前景色:30:黑,31:红,32:绿,33:黄,34:蓝,35:紫,36:青,37:白。
printf("
\033[0;40;32m Begin to download
\033[0m \n");
printf("\033[01;40;32m Begin \033[0m\n");
printf("\033[01;40;37m begin \033[0m\n");
阅读(1442) | 评论(0) | 转发(1) | <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
0 上一篇:TCP端口状态详解
下一篇:linux下进度条打印
相关热门文章 给主人留下些什么吧!~~ 评论热议