如何使用PyCharm打印成彩色?

时间:2019-02-27 01:16:29

标签: colors pycharm python-3.5

以前我使用IDLE,但是随后发生了子流程错误,因此我得到了PyCharm。好吧,当我复制一些代码时,我正在使用: import sys try: color = sys.stdout.shell except: AttributeError: raise RuntimeError("Use IDLE")

这在IDLE中工作得很好,但是在PyCharm中出现了以下消息: AttributeError: '_io.TextIOWrapper' object has no attribute 'shell'RuntimeError: Use IDLE。我不知道该怎么办,因此欢迎您提供任何帮助。即使我必须将打印过程更改为彩色。

0 个答案:

没有答案
相关问题