“Python CMD Colors” Código de respuesta

Python CMD Colors

from colorama import init
from colorama import Fore, Back, Style

init()

print(Fore.RED + 'some red text')
print(Back.GREEN + 'and with a green background')
print(Style.DIM + 'and in dim text')
print(Style.RESET_ALL)
print('back to normal now')
# or
print('\033[31m' + 'some red text')
print('\033[39m') # and reset to default color
kripi__

Cómo cambiar el color del símbolo del sistema en Python

import os
# To get all possible colors for the command line, open the command prompt
# and enter the command "color help"
os.system('color FF')
expliked

Respuestas similares a “Python CMD Colors”

Preguntas similares a “Python CMD Colors”

Más respuestas relacionadas con “Python CMD Colors” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código