python之设置控制台字体颜色
# 设置控制台输出字体颜色
# 格式:\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/uGSdl0XvSlkt8VG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YDJNVwasyi8VyLeOGNDU1VVdXs1is6urqpqam6Ru7ZzA3VfDdjx8/LhaLWSyWQqFwd8P9IwDmwWRV3J91uC/HxcV9/vnnTqfTarXiPa7R93HfHXNTBV/Izs5ub28/efLkpk2burq6Ojs7vZUAMAkmqwIAfgRUAQBSgCoAQApQBQBIAaoAAClAFQAgBagCAKQAVQCAFKAKAJACVAEAUoAqAEAKUAUASAGqAAApQBUAIAWoAgCkAFUAgBSgCgCQAlQBAFL8P7/IxlioxNBfAAAAAElFTkSuQmCC" alt="" />
注意:本人在windows系统下使用pycharm运行举例,字体颜色与Linux有区别
python之设置控制台字体颜色的更多相关文章
- pycharm 如何设置函数调用字体颜色
一.pycharm 如何设置函数调用字体颜色 1.打开pycharm编辑器,file > settings > editor > color scheme > python & ...
- 设置placeholder字体颜色
/*设置placeholder字体颜色*/::-webkit-input-placeholder{ color: #FFF;}:-ms-input-placeholder{ color: #FFF;} ...
- poi生成excel整理(设置边框/字体/颜色/加粗/居中/)
转: poi生成excel整理(设置边框/字体/颜色/加粗/居中/) 2016年12月02日 11:05:23 吃奶的牛 阅读数:34324 HSSFWorkbook wb = new HSSFW ...
- Python学习随笔:使用xlwings设置和操作excel多行多列数据以及设置数据字体颜色填充色对齐方式的方法
☞ ░ 前往老猿Python博文目录 ░ 在前面老猿的文章中,<Python学习随笔:使用xlwings读取和操作Excel文件>.<Python学习随笔:使用xlwings读取和操 ...
- js动态设置输入框字体/颜色
动态设置文本框颜色: 主要是利用javascript中的触发事件onfocus和onblur <script language="javascript" type=" ...
- Windows上C语言实现设置控制台的颜色
这里设置只要调用system();这个函数就行了,参数是字符串,想要设置终端的颜色,按照以下格式可以设置: //数字表示前景色,字母表示背景色 //color 0=黑色 1蓝色 2 绿色 3湖蓝色 4 ...
- ios最新设置状态栏字体颜色总结
状态栏的字体为黑色:UIStatusBarStyleDefault 状态栏的字体为白色:UIStatusBarStyleLightContent 一.在info.plist中,将View contro ...
- Extjs grid 设置行字体颜色
CustSuppGrid = Ext.create('Ext.grid.Panel', { title : '', // 标题头 iconCls : 'icon-grid', // 标题图标 stor ...
- Android 设置TextView字体颜色
设置TextView字体的颜色其实很简单,尤其是直接在XML文件中,可以直接通过textColor属性指定颜色值,达到设置文本颜色的效果:那在代码中如何动态设置字体的颜色值呢? 接下来,介绍如何通过J ...
随机推荐
- Qt中静态变量使用方法
静态变量可以在各个页面之前使用 先定义一个用于存放静态变量的类 例如datavar 在datavar.h中添加如下代码 #ifndef DATAVAR_H #define DATAVAR_H #inc ...
- PAT A1134 Vertex Cover (25 分)——图遍历
A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at le ...
- AI 前馈神经网络
前馈神经网络(Feedforward Neural Network,简称FNN),也叫多层感知机(Multilayer Perceptron,简称MLP).FNN的目标是通过学习参数θ,得到最佳的函数 ...
- Android学习之触点事件的处理
知识点: 1. Android开发中的运动事件:触摸屏(TouchScreen)和滚动球(TrackBall) 2.对运动事件的处理:MotionEvent 3.触摸时必发的三个MotionEvent ...
- linux内存源码分析 - SLAB分配器概述
本文为原创,转载请注明:http://www.cnblogs.com/tolimit/ 之前说了管理区页框分配器,这里我们简称为页框分配器,在页框分配器中主要是管理物理内存,将物理内存的页框分配给申请 ...
- Android中AsyncTask的使用
原文 https://blog.csdn.net/liuhe688/article/details/6532519 在Android中实现异步任务机制有两种方式,Handler和AsyncTask. ...
- Android Studio 导入工程
最简单的方式 等待加载完就好了 第二种方式 在导入别人的android studio项目(假设为项目A)时,会遇到gradle不一致的情况,以下简短介绍解决方法: 1. 打开要导入的项目的目录,删除下 ...
- SQLServer 窗口函数(转载)
一.窗口函数的作用 窗口函数是对一组值进行操作,不需要使用GROUP BY 子句对数据进行分组,还能够在同一行中同时返回基础行的列和聚合列.窗口函数,基础列和聚合列的查询都非常简单. 二.语法格式 窗 ...
- Promise使用时应注意的问题
最近在使用axios库时遇到了个问题,后端接口报了500错误,但前端并未捕获到.1. 调用接口的业务代码如下: // 业务代码调用 axios({ url: url, method: 'post', ...
- [Spark][python]以DataFrame方式打开Json文件的例子
[Spark][python]以DataFrame方式打开Json文件的例子: [training@localhost ~]$ cat people.json{"name":&qu ...