Cmd Color Codes Not Working Python Code Example


Example 1: python color text on windows

import termcolor import os os.system('color') print(termcolor.colored("I want to help", "red"))

Example 2: how to change the color of command prompt in python

import os # To get all possible colors for the command line, open the command prompt # and enter the command "color help" os.system('color FF')

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer