0
How can output text color / style be changed in Python?
I'm looking for a way to change the color / style for certain sections of the output text. Does anyone know how to print text in bold or in different colors?
4 odpowiedzi
+ 1
Thanks all, but I just figured out how to:
Install colorama:
In the command prompt / terminal, type:
(sudo) py -m pip install colorama
Then,
from colorama import Fore, Back, Style, init
You can use those properties to modify output text.
Note: This doesn't work on IDLE Shell.
0
You can't.