带SmartyPants的Python
项目描述
smartypants
smartypants 是SmartyPants 的 Python 分支。
安装
要安装它
pip install smartypants
快速使用
将其作为模块使用
import smartypants
text = '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port'
print(smartypants.smartypants(text))
使用命令行脚本 smartypants
echo '"SmartyPants" is smart, so is <code>smartypants</code> -- a Python port' | smartypants
两者都产生
“SmartyPants” is smart, so is <code>smartypants</code> — a Python port