Can I write italics to the Python shell?

后端 未结 3 1797
难免孤独
难免孤独 2021-01-02 05:02

Is it possible to write something like this:

>>> text_output = \"Hello World.\"
>>> print text_output

...where if the tex

3条回答
  •  死守一世寂寞
    2021-01-02 05:29

    Not in the standard Python shell, no. If you want all output text to be in italics, you could use some GUI shell like Dreampie. If you want the ability to actually style text (with italics, bold, etc.), you need to use some GUI library that provides that sort of ability.

提交回复
热议问题