简体   繁体   English

如何着色 Python repl

[英]How to colorise the Python repl

蟒蛇复制

维姆

As we can see the difference between the images.我们可以看到图像之间的差异。 In vim datatype and function are of different color.在 vim 数据类型和 function 中,颜色不同。 How can i bring color to my python repl.我怎样才能给我的 python repl 带来颜色。

I want to do it by myself.我想自己做。 Please suggest me, how should I do this.请建议我,我该怎么做。 Whether I should have to do something with stdout stream object or I have to change something in python interpreter and then build it from source (ohh I have to compile the python from source only to bring this change) Whether I should have to do something with stdout stream object or I have to change something in python interpreter and then build it from source (ohh I have to compile the python from source only to bring this change)

Sorry if there is some error in my question.对不起,如果我的问题有一些错误。 Hopes you all will understand me.希望大家能理解我。

You should probably have searched a little bit more first, because there are many answers here about this.您可能应该先搜索一下,因为这里有很多关于此的答案。 Perhaps the best ones are:也许最好的是:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM