Python Color Text to the Terminal / Output

preview_player
Показать описание
In this tutorial, we will have a look at how you can output text to the terminal using different colors. We will develop a little program to generate all the color codes and combinations to help copy and paste the ones required. We will not be using colourama however we will be using terminal ASCII
Рекомендации по теме
Комментарии
Автор

For anyone who wants the ascii colors
x = 0
for rows in range(24):
colors = ""
for columns in range(5):
code = str(x+columns)
colors = colors + "\33[" + code + "m\\33[" + code + "m\033[0m"
print(colors)
x += 5

goodcrazycreeper
welcome to shbcf.ru