Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python color in console

class bcolors:
    HEADER = '33[95m'
    OKBLUE = '33[94m'
    OKGREEN = '33[92m'
    WARNING = '33[93m'
    FAIL = '33[91m'
    ENDC = '33[0m'
    BOLD = '33[1m'
    UNDERLINE = '33[4m'

print(f"{bcolors.WARNING}Error : Test message !{bcolors.ENDC}")
Comment

python color text console

class bcolors:
    HEADER = '33[95m'
    OKBLUE = '33[94m'
    OKCYAN = '33[96m'
    OKGREEN = '33[92m'
    WARNING = '33[93m'
    FAIL = '33[91m'
    ENDC = '33[0m'
    BOLD = '33[1m'
    UNDERLINE = '33[4m'
    
print(f"{bcolors.WARNING}Warning: Example. Continue?{bcolors.ENDC}")
Comment

python colored text in console

print(f"{bcolors.WARNING}Warning: No active frommets remain. Continue?{bcolors.ENDC}")
Comment

PREVIOUS NEXT
Code Example
Python :: python bisect 
Python :: python includes string 
Python :: basic flask app python 
Python :: python compute cross product 
Python :: python 2.7 venv 
Python :: django sign up 
Python :: gradient descent python 
Python :: notebook cell print output to file 
Python :: python override string class 
Python :: matplotlib legend get handles 
Python :: python add commas to list 
Python :: how to change value of categorical variable in python 
Python :: find greatest number in list python 
Python :: pandas read csv dtype list 
Python :: python escape character example 
Python :: how to scale an array between two values python 
Python :: compress excel file in python 
Python :: pandas change column type 
Python :: numpy concatenation python 
Python :: save image to database using pillow django 
Python :: run python script automatically every day 
Python :: python delete key dictionary 
Python :: python find center of polygon function 
Python :: return mean of df as dataframe 
Python :: python generator expression 
Python :: digital differential analyzer 
Python :: get key from dict python 
Python :: python towers of hanoi recursive 
Python :: push in python 
Python :: soustraire deux listes python 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =