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

how to change the console background color in python

import os

os.system('color 8f')
Comment

python colored text in console

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

PREVIOUS NEXT
Code Example
Python :: concatenate strings of numpy array python 
Python :: how to input a picture into opencv raspberry pi 
Python :: closure python 
Python :: Python RegEx SubString – re.sub() 
Python :: .add_prefix to certain columns python 
Python :: python create sqlite db file 
Python :: convert all sizes to terabytes pandas 
Python :: DecisionTreeClassifier 
Python :: Common Python String Methods 
Python :: python string is in list 
Python :: pandas merge sort columns 
Python :: golang get started 
Python :: add text to axis 
Python :: pygame template 
Python :: Generate hashed passwords for ansible 
Python :: python docker 
Python :: customise the django rest api view 
Python :: intialize 2d aray in python 
Python :: jupyter notebook bold text 
Python :: how to exit a loop in python 
Python :: flask add_url_rule 
Python :: how to remove last item from list python 
Python :: numpy arange 
Python :: dict comprehensions 
Python :: try and except in python 
Python :: how to use for in python 
Python :: pop up window flutter 
Python :: Find Factors of a Number Using Function 
Python :: typeerror: 
Python :: python test module 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =