Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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}")
 
PREVIOUS NEXT
Tagged: #python #color #console
ADD COMMENT
Topic
Name
2+6 =