Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

PREVIOUS NEXT
Code Example
Python :: mysql config not found 
Python :: how to save a model fast ai 
Python :: python os.getenv not working 
Python :: django integer field example 
Python :: django reverse 
Python :: cv2 hconcat 
Python :: how to apply logarithm in pandas dataframe 
Python :: pandas groupby as new column 
Python :: remove all occurrences of a character in a list python 
Python :: 1 eth to wei 
Python :: tkinter labelframe 
Python :: random from list python 
Python :: tqdm notebook 
Python :: how to print right angle triangle in python 
Python :: dataframe to txt 
Python :: pandas reciprocal 
Python :: get highest value from dictionary python 
Python :: python day number from date 
Python :: discord.py change status 
Python :: custom 404 page flask 
Python :: how to get all the files in a directory in python 
Python :: how to get the current web page link in selenium pthon 
Python :: load ui file pyqt5 
Python :: python printing date 
Python :: pymysql check if table exists 
Python :: python method to filter vowels in a string 
Python :: python parse args 
Python :: django return only part of string 
Python :: pandas lambda if else 
Python :: f string float format 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =