# 设置控制台输出字体颜色
# 格式:\033[显示方式;前景色;背景色m
# 采用终端默认设置:\033[0m # 红色字体
print('\033[1;31m')
print('*' * 10)
print('hello world!')
print('*' * 10)
print('\033[0m') # 绿色字体
print('\033[1;32m' + 'green' + '\033[0m') # 蓝色字体
print('\033[1;34m' + 'blue' + '\033[0m') # 黄字下划线
print('\033[4;33m' + 'yellow' + '\033[0m') # 红底黑字
print('\033[1;30;41m' + 'black' + '\033[0m') # 白底黑字
print('\033[1;30;47m' + 'white' + '\033[0m') print('normal')

运行结果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAECCAIAAACAEa6JAAAfYklEQVR4nO2d+1sTWZqA528RV22L6wYQnEASkkBCwjX3C/cQEiLgBVFQRPEG2KK0aSEot6gY0RbQKAgqoLZ263Sr7egw42W6Z9192ll2nG3tUdvePvtDaYyBVApIrLLyvc/3+JRfVZ0UVeflnFNVOfxOoVDwpLkQEBDE8TtQBQKCTIAqEBCkAlSBgCAVuCo5EBAQxPE7hUKxNIoNAQFBHL9TKBRsDi8QsWTJkgCVjAHABwdUAQBSgCoAQApQBQBIAaoAAClAFQAghQ9V/t0miFmf9HsBqAIEO75aFYcs4Zg8Zp8oXsENnCqiVIkoVQKqAHTGhyrcAa1wqCDxC3VMtzS6nPd7nv9VEaVKVCqVSqUibwvVJw0IRnyoktCvEY4Y+EMFiQO62MOZUQ2CuHR/qoJ7otVqtVoteVuoPmlAMOJDleVfqHjDBbzhAu5QfsIp3TJHdkR7CsvAZXN998d8quLyRKfT6XQ68rZQfdKAYMSHKsuOyxPP5r6JMzns07plx+WRXeLwTdx4kQ9biFVJEacqlUqNRqNzQ6PRKJXKFHEqqALQDR+qsBxZy0/r3CN+UBt7QhFpl37SwmNpE+emCu6JWq3WTkOtVvu0heqTBgQjPlSJ6s1YNqj2jAFVzBfyyA5JdA5Rw0JyWK9WqzUajUajUavVZLYHVQBK8KFK2GEJq1/uGSdl0XvSlkt8VGiSqqhUKrVarVarV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eOGNDU1VVdXs1is6urqpqam6Ru7ZzA3VfDdjx8/LhaLWSyWQqFwd8P9IwDmwWRV3J91uC/HxcV9/vnnTqfTarXiPa7R93HfHXNTBV/Izs5ub28/efLkpk2burq6Ojs7vZUAMAkmqwIAfgRUAQBSgCoAQApQBQBIAaoAAClAFQAgBagCAKQAVQCAFKAKAJACVAEAUoAqAEAKUAUASAGqAAApQBUAIAWoAgCkAFUAgBSgCgCQAlQBAFL8P7/IxlioxNBfAAAAAElFTkSuQmCC" alt="" />

注意:本人在windows系统下使用pycharm运行举例,字体颜色与Linux有区别

python之设置控制台字体颜色的更多相关文章

  1. pycharm 如何设置函数调用字体颜色

    一.pycharm 如何设置函数调用字体颜色 1.打开pycharm编辑器,file > settings > editor > color scheme > python & ...

  2. 设置placeholder字体颜色

    /*设置placeholder字体颜色*/::-webkit-input-placeholder{ color: #FFF;}:-ms-input-placeholder{ color: #FFF;} ...

  3. poi生成excel整理(设置边框/字体/颜色/加粗/居中/)

    转: poi生成excel整理(设置边框/字体/颜色/加粗/居中/) 2016年12月02日 11:05:23 吃奶的牛 阅读数:34324   HSSFWorkbook wb = new HSSFW ...

  4. Python学习随笔:使用xlwings设置和操作excel多行多列数据以及设置数据字体颜色填充色对齐方式的方法

    ☞ ░ 前往老猿Python博文目录 ░ 在前面老猿的文章中,<Python学习随笔:使用xlwings读取和操作Excel文件>.<Python学习随笔:使用xlwings读取和操 ...

  5. js动态设置输入框字体/颜色

    动态设置文本框颜色: 主要是利用javascript中的触发事件onfocus和onblur <script language="javascript" type=" ...

  6. Windows上C语言实现设置控制台的颜色

    这里设置只要调用system();这个函数就行了,参数是字符串,想要设置终端的颜色,按照以下格式可以设置: //数字表示前景色,字母表示背景色 //color 0=黑色 1蓝色 2 绿色 3湖蓝色 4 ...

  7. ios最新设置状态栏字体颜色总结

    状态栏的字体为黑色:UIStatusBarStyleDefault 状态栏的字体为白色:UIStatusBarStyleLightContent 一.在info.plist中,将View contro ...

  8. Extjs grid 设置行字体颜色

    CustSuppGrid = Ext.create('Ext.grid.Panel', { title : '', // 标题头 iconCls : 'icon-grid', // 标题图标 stor ...

  9. Android 设置TextView字体颜色

    设置TextView字体的颜色其实很简单,尤其是直接在XML文件中,可以直接通过textColor属性指定颜色值,达到设置文本颜色的效果:那在代码中如何动态设置字体的颜色值呢? 接下来,介绍如何通过J ...

随机推荐

  1. 管理我的数据之GDBM

    管理我的数据之GDBM 作者 He YiJun – storysnail<at>gmail.com 团队 ls 版权 转载请保留本声明! 本文档包含的原创代码根据General Publi ...

  2. 天书笔记:HTML+CSS实现顶部导航栏

    此笔记纯属本人脑残笔记,阅读困难不理解属正常现象,初学者尽量不要阅读,否则轻则口吐白沫重则走火入魔,切记切记 先晒效果图: 效果要求类似于b站的顶部导航(..原谅我老是拿b站做例子:) ) 然后是代码 ...

  3. 写在阿里去IOE一周年

    [文/ 任英杰] 去年5月17日,阿里巴巴支付宝最后一台IBM小型机在下线,标志着阿里完成去IOE.随后一场去IOE运动不断发酵,甚至传闻IBM中国去年损失了20%的合同额. 去了IOE,奔向何方?阿 ...

  4. git 基本命令 (常用)

    http://www.zhixing123.cn/ubuntu/37865.html 参考的这个网址 他这里有个错误:id_rsa.pub 应该复制这个 而不是id_rsa  1341  git in ...

  5. 一致性哈希与java实现

    一致性哈希算法是分布式系统中常用的算法.比如,一个分布式的存储系统,要将数据存储到具体的节点上,如果采用普通的hash方法,将数据映射到具体的节点上,如key%N,key是数据的key,N是机器节点数 ...

  6. 新型I/O架构引领存储之变(四)

    新型I/O架构引领存储之变(四) 作者:廖恒 应对挑战--商务及技术考量 本文前面的部分分析了砖块模式与生俱来的总拥有成本(TCO)过高的问题.为了战胜这一挑战,超大规模数据中心的运营者须要从两个不同 ...

  7. Codeforces Round #371 (Div. 2) 转换数字

    C. Sonya and Queries time limit per test 1 second memory limit per test 256 megabytes input standard ...

  8. npm run build 打包后(直接打包白屏),如何运行在本地查看效果(Apache服务)

    转载: https://www.cnblogs.com/qiu-Ann/p/7477593.html 目前,使用vue-cli脚手架写了一个前端项目,之前一直是使用npm run dev 在8080端 ...

  9. Codeforces Round #190 (Div. 2).D

    一道贪心题. 可以分两种情况 1 .是没有把对面的牌全打败,那么只要用最大的可能去打攻击状态的牌. 2. 是将对面的牌全打败,那么只要保证打对面防守状态的花费最小,就可以保证最后的结果最大 两种情况下 ...

  10. jmeter多台压力机测试

    jmeter控制机会自动将脚本发送至压力机 1.控制机配置 jmeter.properties中配置: remote_hosts=ip1:1099,ip2:1022,ip3:1099 将压力机ip+p ...