Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

printing with colors

CEND      = '33[0m'
CBOLD     = '33[1m'
CITALIC   = '33[3m'
CURL      = '33[4m'
CBLINK    = '33[5m'
CBLINK2   = '33[6m'
CSELECTED = '33[7m'

CBLACK  = '33[30m'
CRED    = '33[31m'
CGREEN  = '33[32m'
CYELLOW = '33[33m'
CBLUE   = '33[34m'
CVIOLET = '33[35m'
CBEIGE  = '33[36m'
CWHITE  = '33[37m'

CBLACKBG  = '33[40m'
CREDBG    = '33[41m'
CGREENBG  = '33[42m'
CYELLOWBG = '33[43m'
CBLUEBG   = '33[44m'
CVIOLETBG = '33[45m'
CBEIGEBG  = '33[46m'
CWHITEBG  = '33[47m'

CGREY    = '33[90m'
CRED2    = '33[91m'
CGREEN2  = '33[92m'
CYELLOW2 = '33[93m'
CBLUE2   = '33[94m'
CVIOLET2 = '33[95m'
CBEIGE2  = '33[96m'
CWHITE2  = '33[97m'

CGREYBG    = '33[100m'
CREDBG2    = '33[101m'
CGREENBG2  = '33[102m'
CYELLOWBG2 = '33[103m'
CBLUEBG2   = '33[104m'
CVIOLETBG2 = '33[105m'
CBEIGEBG2  = '33[106m'
CWHITEBG2  = '33[107m'

#example:
print(CRED2, "This will be typed in red", CEND)
Comment

PREVIOUS NEXT
Code Example
Python :: python - remove repeted columns in a df 
Python :: pyspark import stringtype 
Python :: filter nulla values only pandas 
Python :: print terminal url 
Python :: set seed python 
Python :: find position of nan pandas 
Python :: open a filename starting with in python 
Python :: 1 day ago python datetime 
Python :: random matrix python 
Python :: python read excel set index 
Python :: python read xml 
Python :: python push into array if not exists 
Python :: boston data set to pandas df 
Python :: factorial python for loop 
Python :: use miraculous with token 
Python :: individuare stella polare con piccolo carro 
Python :: convert dtype of column cudf 
Python :: requirements.txt flask 
Python :: upgrade python to 3.9 i linux 
Python :: pandas groupby sum 
Python :: replace "-" for nan in dataframe 
Python :: absolut beginners projects in python with tutorial 
Python :: numpy get specified colums 
Python :: python gzip 
Python :: pandas number of observations 
Python :: position in alphabet python 
Python :: qmenu get item value python 
Python :: discord.py ping command 
Python :: Right click context menu of a file in Python 
Python :: mongodb connection using python 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =