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 :: how to construct simple timedelta in python 
Python :: numpy apply log to array 
Python :: Resource punkt not found. Please use the NLTK Downloader to obtain the resource: 
Python :: chi square test in python 
Python :: codeforces 677a solution 
Python :: python binary to string 
Python :: python check list contains another list 
Python :: inverse matrice python 
Python :: import pyttsx3 
Python :: how to make square shape python 
Python :: how to reomve certain row from dataframe pandas 
Python :: build url python 
Python :: how to add 2 dates in python 
Python :: python current utc offset 
Python :: openpyxl write in cell 
Python :: django wait for database 
Python :: how to record pyttsx3 file using python 
Python :: python check version 
Python :: cosine interpolation 
Python :: how to pick a random number in a list python 
Python :: make coordinate cyclic in python 
Python :: python print string separated by comma 
Python :: sqlalchemy create engine PostgreSQL 
Python :: python set symmetric difference 
Python :: Add a quit button Tkinter 
Python :: getting pi in python 
Python :: enumerate in python 
Python :: python ignore exception 
Python :: how to define dtype of each column before actually reading csv file 
Python :: how to count in a loop python 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =