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 :: get minimum value function with anealing in python 
Python :: python f strings 
Python :: pypi autopep8 
Python :: use count() function to find if a row is there in sqlite database or not. 
Python :: 123bum123 
Python :: Python NumPy asmatrix Function Example 
Python :: Python NumPy asscalar Function Syntax 
Python :: Python NumPy hstack Function Example with 1d array 
Python :: add a new field to a Hosted Feature Layer 
Python :: Python NumPy append Function Example Working with axis 
Python :: SciPy KDTrees 
Python :: How to obtain a jpeg resolution in python 
Python :: Python __ne__ magic method 
Python :: Program to get number of consecutive repeated substring 
Python :: make all subplots same height 
Python :: NumPy unpackbits Syntax 
Python :: data base creation 
Python :: jenkins crumb python request 
Python :: geopandas gdf or df to file 
Python :: valid paranthesis 
Python :: How can I make portable python desktop application 
Python :: wpapi 
Python :: How to allow discord bot to respond to webhook. Python. Discord.py 
Python :: corpus.fit(sentences, window=10) 
Python :: How deploy Flask application on Webfaction 
Python :: walrus with ternary python 
Python :: replace string in dictionary python 
Python :: text to ascii art generator python 
Python :: how to dynamically append value in a list in python 
Python :: talib 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =