简体   繁体   English

如何更改Python Shell的字体颜色和大小

[英]How to change font colour and size of Python Shell

I am using Python 3 and I am not sure if this is a possible query because I've searching it up and I couldn't find a solution. 我正在使用Python 3,我不确定这是否是一个可能的查询,因为我已经搜索它,我找不到解决方案。 My question is, I want to learn how to change colour and size of my output. 我的问题是,我想学习如何改变输出的颜色和大小。

How to make the size bigger or smaller? 如何使尺寸变大或变小?

Able to make the font size big 能够使字体大小

How to change the background colour of shell? 如何更改shell的背景颜色?

Able to make the background colour, for example, right now, it's all white but I want it black. 能够制作背景颜色,例如,现在,它全是白色但我希望它是黑色的。

How to change the output colour of shell? 如何更改shell的输出颜色?

I would love to see colourful fonts operating in black background shell 我很想看到在黑色背景外壳中运行的彩色字体

I hope there is a solution to this! 我希望有一个解决方案! Thanks in advance 提前致谢

I know about the color part, but I came for the size. 我知道颜色部分,但我来的大小。 To start off with, to close the color, use \ . 首先,要关闭颜色,请使用\ If you don't use this, all text will become the color that you started with until you close it. 如果不使用此选项,则在关闭之前,所有文本都将成为您开始使用的颜色。 Green is \ Black is \ Pink is \ There are much more, but is you experiment with different numbers, you can highlight and do different colors. 绿色是\黑色是\粉红色是\还有更多,但你尝试不同的数字,你可以突出显示并做不同的颜色。 To make a sentence with color, format it like this: print("\Hi, coders. This is pink output.\") Test that code. 要使用颜色制作句子,请将其格式化为: print("\Hi, coders. This is pink output.\")测试该代码。 it will come out in pink. 它将以粉红色出现。

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

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