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 :: get nodes of xml in python 
Python :: python read file with class 
Python :: python access to vraiable in another classe 
Python :: make python standalone 
Python :: Set changed size during iteration 
Python :: Python NumPy asfortranarray Function Syntax 
Python :: Python NumPy asscalar Function Example 02 
Python :: Python NumPy dstack Function Syntax 
Python :: get text from heatmap 
Python :: Python NumPy insert Function Example Using insertion at different points 
Python :: python increase a value every n rows 
Python :: codeforces problem 580A 
Python :: python interpreter after running a python file 
Python :: what are while loops in python 
Python :: change bg awesomewm 
Python :: NumPy unpackbits Code Unpacked array along axis 0 
Python :: save axis and insert later 
Python :: instance variables python 
Python :: get primary key in get_context_data 
Python :: django hash password Argon 
Python :: Python script to download all images from a website to a specified folder with BeautifulSoup 
Python :: python simplenamespace to json 
Python :: seaborn colorbar labelsize 
Python :: ignore exception decorator 
Python :: if space bar pressed pygame 
Python :: EDA describe missing and zero values 
Python :: element tree no able to find tag 
Python :: ring get a list of functions names written in the Ring language 
Python :: plot a list of number in python 
Python :: webdriver antibot 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =