print_wcolor
Project description
print_wcolor
使用print_wcolor可以打印出彩色字体和彩色背景
Use Print WColor to print out colored fonts and colored backgrounds 使用示例
for example
from print_wcolor import print_wcolor
a=[1,2,3,4]
c={}
c["r"]=255
c["g"]=255
print("*"*20)
print_wcolor("i think","therefor i am",a,c,fg="red",bg="green")
print("*"*20)
print_wcolor("i think","therefor i am",a,c,fg="red")
print("*"*20)
print_wcolor("i think","therefor i am",a,c,bg="green")
print("*"*20)
print_wcolor("i think","therefor i am",a,c)
其中"i think,therefor i am"是要打印的信息,fg是字体颜色,bg是背景颜色。
Where "I think,therefor I am" is the information to be printed, fg is the font color, bg is the background color.
关键词fg选项如下
Keyword FG options are as follows
{"black","red","green","yellow","blue","purple","cyan","white"}
关键词bg选项如下
Keyword BG options are as follows
{"black","red","green","yellow","blue","purple","cyan","white"}
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
print_wcolor-0.0.8.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file print_wcolor-0.0.8.tar.gz
.
File metadata
- Download URL: print_wcolor-0.0.8.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88f6cb823aca41d6caf693f27866a368057b97fa2d78b96674b4329ff37df4e5 |
|
MD5 | c7abd220d2423df50689f9fd4b951589 |
|
BLAKE2b-256 | 8a03ae74988edb62a99cfbc8334a79d071ee8daebc59a9506ec35b59307c178b |
File details
Details for the file print_wcolor-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: print_wcolor-0.0.8-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 436f39598a05362d93ee7118605d057c38bfcacaa507d1e6d1845a12c4c2c269 |
|
MD5 | 89fbc9b70f371951fb004b9479359c43 |
|
BLAKE2b-256 | daf211fdc393aa67decc850f52df16277c16600f89d1afb1942e1bacf8aa5a76 |