Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

colorama

from colorama import Fore, Back, Style
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')
Comment

colorama

from colorama import Fore, Back, Style , init

init() # crucial on windows but on other platforms it has no effect

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')
Comment

PREVIOUS NEXT
Code Example
Python :: add footer embed discordpy 
Python :: python f string round 
Python :: how to change the favicon in flask 
Python :: python elementtree build xml 
Python :: How to decrease length of entry in tkinter 
Python :: python dynamic loop 
Python :: cartesian product of a list python 
Python :: python temp directory 
Python :: print the heat map python 
Python :: compute count2(aacaagctgataaacatttaaagag, aaaaa). in python 
Python :: array must not contain infs or NaNs 
Python :: pyrogram 
Python :: df invert sort index 
Python :: copy a 2d array in python 
Python :: how to ask someone for their name in python 
Python :: repeat 10 times python 
Python :: convert categorical variable to numeric python 
Python :: button position python 
Python :: get package share vs Find Package Share 
Python :: tkinter progresse bar color 
Python :: pydotprint 
Python :: select only object columns pandas 
Python :: plt turn legend off 
Python :: presentation in jupyter notebook 
Python :: max int value in python 
Python :: python generate list alphabet 
Python :: converting bool to 1 if it has true and if it is false print 1 
Python :: how to print for loop in same line in python 
Python :: python imread multiple images 
Python :: what is r strip function in python 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =