How do I print colored text in IDLE's terminal?

后端 未结 6 1635
谎友^
谎友^ 2020-12-11 19:50

This is very easily a duplicate question--because it is. However, there are very many inadequate answers to this (e.g. try curses! -- pointing to a 26 page docu

6条回答
  •  佛祖请我去吃肉
    2020-12-11 20:03

    The short answer: No, it isn't possible to colour different outputs in the IDLE shell.

    The only colour changes you can make it to change the entire colour theme, but this will affect all printed strings. If you need coloured output, you should probably switch away from a basic IDE like IDLE or at least a more complete shell than the basic IDLE shell. See this duplicate: Change printed text color in Idle?

提交回复
热议问题