Skip to main content

A library for printing colored text

Project description

color_text

This is a library for printing colored texts.

这是一个用来打印彩色文字的库。

Note 注意

Best used in Python 3.8

最好在 Python 3.8 上使用

Install 安装

pip3 install color_text

Example 例子

from color_text import *

printLightRed("This is a light red text.")
printYellow("This is a yellow text.")
printRed("This is a red text.")
printGreen("This is a green text.")
printBlack("This is a black text.")
printBlue("This is a blue text.")
printPurple("This is a purple text.")
printWhite("This is a white text.")
printGrey("This is a grey text.")
printGray("This is a grey text too.")
printLightBlue("This is a light blue text.")
printVeryLightGreen("This is a very light green text.")
printLightPurple("This is a light purple text.")
printLightYellow("This is a light yellow text.")
printGlossWhite("This is a gloss white text.")
printLightGreen("This is a light green text.")
printLightGreen("This is a light green text too.", 2)
Print("This is a text.")

# You can see the result of this example in the exaple() function of this library.
# 你可以在这个库的 exaple() 函数中看到这个例子的结果。(如果计算机默认语言是中文的就会看到中文结果,函数的顺序是一样的)

What's new in this version 这个版本中的新功能

The example() and Print() functions have been added.

增加了example() 函数和 Print() 函数。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

color_text-1.1.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

color_text-1.1.1-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page