colorful:Python中正确的终端字符串样式

时间:2021-02-04 15:13:50
【文件属性】:
文件名称:colorful:Python中正确的终端字符串样式
文件大小:366KB
文件格式:ZIP
更新时间:2021-02-04 15:13:50
python windows linux console terminal 多彩的 在Python中正确完成了终端字符串样式 :party_popper: 这是一个挑逗 import colorful as cf # create a colored string using clever method translation print ( cf . bold_white ( 'Hello World' )) # create a colored string using `str.format()` print ( '{c.bold}{c.lightCoral_on_white}Hello World{c.reset}' . format ( c = cf )) # nest colo
【文件预览】:
colorful-master
----MANIFEST.in(91B)
----colorful()
--------styles.py(1KB)
--------core.py(21KB)
--------utils.py(1KB)
--------data()
--------__init__.py(4KB)
--------terminal.py(2KB)
--------colors.py(2KB)
--------ansi.py(2KB)
----requirements-dev.txt(23B)
----.github()
--------FUNDING.yml(85B)
--------ISSUE_TEMPLATE()
--------workflows()
--------CODE_OF_CONDUCT.md(3KB)
----tests()
--------test_utils.py(1KB)
--------test_terminal.py(3KB)
--------test_ansi.py(602B)
--------test_module.py(3KB)
--------__init__.py(0B)
--------test_colors.py(956B)
--------test_core.py(32KB)
----tox.ini(344B)
----LICENSE(1KB)
----setup.cfg(54B)
----examples()
--------basic_example.png(84KB)
--------solarized_base_colors.png(37KB)
--------solarized.py(2KB)
--------monokai_base_colors.png(34KB)
--------monokai.py(2KB)
--------colors.py(2KB)
----setup.py(3KB)
----.gitignore(174B)
----CHANGELOG.md(4KB)
----README.md(15KB)

网友评论