Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

colored text python

from colorama import init
from colorama import Fore
init()
print(Fore.BLUE + 'Hello')
print(Fore.RED + 'Hello')
print(Fore.YELLOW + 'Hello')
print(Fore.GREEN + 'Hello')
print(Fore.WHITE + 'Hello')

#test in vscode
#code by fawlid
Comment

python color text

#example
print("33[1;31mHello World!33[0m")

print("33[<properties>;<color>m")

Black	30	No effect	0	Black	40
Red		31	Bold		1	Red		41
Green	32	Underline	2	Green	42
Yellow	33	Negative1	3	Yellow	43
Blue	34	Negative2	5	Blue	44
Purple	35					Purple	45
Cyan	36					Cyan	46
White	37					White	47
Comment

color python

from colorama import Fore, Back, Style
print(Fore.RED + "red")
print(Style.RESET_ALL)
Comment

python text color

from termcolor import colored
print(colored('python', 'green', attrs=['bold']))
Comment

PREVIOUS NEXT
Code Example
Python :: seaborn boxplot 
Python :: print statement in python 
Python :: requests.packages.urllib3.util.retry could not be resolved from source 
Python :: count a newline in string python 
Python :: clone website 
Python :: python get list memory size 
Python :: what is from_records in DataFrame() pandas in python? 
Python :: python max key dictionary key getter 
Python :: move column in pandas 
Python :: how to write the character from its ascii value in python 
Python :: train_test_split sklearn 
Python :: load json py 
Python :: python recursively print directory 
Python :: python sort class by attribute 
Python :: how to do swapping in python without 
Python :: iter() python 
Python :: sort columns dataframe 
Python :: django static files 
Python :: clean nas from column pandas 
Python :: box plot seaborn python 
Python :: python copy 
Python :: how do i turn a tensor into a numpy array 
Python :: remove ,drop,effacer, dataframe,python 
Python :: python format subprocess output 
Python :: 3d array numpy 
Python :: convert float to int python 
Python :: menubar pyqt 
Python :: python stack 
Python :: query with condition django 
Python :: Python NumPy repeat Function Syntax 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =