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

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 make a venv python 
Python :: count unique pandas 
Python :: django content type 
Python :: how to make a rect in pygame 
Python :: initialize dictionary to zero in python 
Python :: python check for duplicate 
Python :: python left rotation 
Python :: robust scaler 
Python :: django check if user is admin 
Python :: python checking if something is equal to NaN 
Python :: numpy arrauy to df 
Python :: python split string every character 
Python :: python regex tester 
Python :: Write a Python program to get the Python version you are using. 
Python :: Simple Scatter Plot in matplotlib 
Python :: Current date and time or Python Datetime today 
Python :: sieve of eratosthenes python 
Python :: custom signal godot 
Python :: python ssh into server 
Python :: pandas dataframe 
Python :: length of dataframe 
Python :: print pattern a shape in python 
Python :: python string in set 
Python :: pandas select a row 
Python :: iterate through an array python 
Python :: validate ip address python 
Python :: python drop all variable that start with the same name 
Python :: how to fix Crypto.Cipher could not be resolved in python 
Python :: # find out of the memory of the python object 
Python :: delete database entry using name django 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =