# 设置控制台输出字体颜色
# 格式:\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. P1006 传纸条-洛谷luogu-dp动态规划

    题目描述 小渊和小轩是好朋友也是同班同学,他们在一起总有谈不完的话题.一次素质拓展活动中,班上同学安排做成一个mm行nn列的矩阵,而小渊和小轩被安排在矩阵对角线的两端,因此,他们就无法直接交谈了.幸运 ...

  2. centos7搭建logstash

    前两节已经成功完成ek的搭建,还剩最后的一个日志上传的功能 依次执行如下命令 cd /home/elk wget https://artifacts.elastic.co/downloads/logs ...

  3. java 适配器模式(adapter pattern)

    适配器就是一种适配中间件,它存在于不匹配的二者之间,用于连接二者,将不匹配变得匹配. 场景:电脑读取内存卡中的内容,内存卡是没有办法直接插在电脑的USB接口上,那就不需要一个转换器. 下面的例子实现了 ...

  4. Tarjan学习笔记

    \(Tarjan\)是个很神奇的算法. 给一张有向图,将其分解成强连通分量们. 强连通分量的定义:一个点集,使得里面的点两两可以互相到达,并且再加上另一个点都无法满足强连通性. \(Tarjan\)的 ...

  5. Omi框架学习之旅 - 之开篇扯蛋

    说实话, 我也不知道Omi是干啥的, 只因此框架是alloyTeam出的, dntzhang写的, 也有其他腾讯大神参与了, 还有一些其他贡献者, 以上我也不太清楚, 当我胡说八嘎. 因其写法有人说好 ...

  6. 关于TerraBuilder的扩展开发

    熟悉Skyline的朋友,可能会发现,在最新的6.6的产品体系中,TerraBuilder中用于生成三维地形场景的模块,改成了TerrainBuilder. 通常情况下,这款软件模块,我们主要用它来进 ...

  7. OSGeo.OGR.Geometry

    #region 程序集 ogr_csharp.dll, v2.0.50727 // D:\KM行业需求\C++\gdal17_cSharp\ogr_csharp.dll #endregion usin ...

  8. Luogu4546 THUWC2017 在美妙的数学王国中畅游 LCT、泰勒展开

    传送门 题意:反正就是一堆操作 LCT总是和玄学东西放在一起我们不妨令$x_0=0.5$(其实取什么都是一样的,但是最好取在$[0,1]$的范围内),将其代入给出的式子,我们得到的$f(x)$的式子就 ...

  9. React-性能优化pureComponent

    每当store里有数据更新时,render()函数就会执行,有时候store的更新数据与本组件并没有关系,render()不必执行. 我们可以用shouldComponentUpdate来优化组件. ...

  10. Tensorflow实例:利用LSTM预测股票每日最高价(一)

    RNN与LSTM 这一部分主要涉及循环神经网络的理论,讲的可能会比较简略. 什么是RNN RNN全称循环神经网络(Recurrent Neural Networks),是用来处理序列数据的.在传统的神 ...