Answers for "pytohn windows cmd colored text"

0

python color text on windows

import termcolor
import os
os.system('color')
print(termcolor.colored("I want to help", "red"))
Posted by: Guest on October-15-2020
0

python cmd colors

from colorama import init
from colorama import Fore, Back, Style

init()

print(Fore.RED + 'some red text')
print(Back.GREEN + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now')
# or
print('33[31m' + 'some red text')
print('33[39m') # and reset to default color
Posted by: Guest on May-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language