【文件属性】:
文件名称:antsy:甜蜜的内插 ANSI 字符串
文件大小:77KB
文件格式:ZIP
更新时间:2021-06-21 17:40:43
Python
坐立不安
甜蜜的内插 ANSI 字符串
安装
antsy 只是一个pip install antsy了。
演示页面
让我们看看 antsy 能做什么! 首先,代码:
import sys
import antsy
print ( antsy . decorate ( 'Some text and then (bold bold text and then (fg/red bold red text) now bold) and normal' ))
print ( antsy . decorate ( '(b bold) (d dim) (i italic) (u underline) (b,fg/red DANGER) (bg/green,i,u,fg/yellow CRAZY)' ))
print ( antsy . decorate ( 'Different delimiter
【文件预览】:
antsy-master
----setup.py(544B)
----.gitignore(65B)
----MANIFEST.in(16B)
----LICENSE(1KB)
----setup.cfg(20B)
----README.md(4KB)
----test.py(3KB)
----antsy.py(3KB)
----demo.png(73KB)