echo -e "\e[1;5;31m要加颜色的字符\e[0m" 其中1 代表高亮 ; 5是闪烁 ; 31是红色 从31到37代表不同颜色 ;\[0m 是加颜色 到这里结束 转载于:https://www.cnblogs.com/liang-1/p/8830800.html