坐立不安
甜蜜的内插 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
评论0
最新资源