中英文缩写转化
Project description
SUO
🐢 suo
是一个「中英文缩写转化」的工具包。
1 功能
- suo.suo: 缩写
- suo.kuo: 扩写
2 安装
⚠️注意:
仅支持 Python 的 3.6 以上版本;
2.1 使用 pip 安装
pip install suo
2.2 从代码库安装
git clone https://github.com/Ailln/suo.git
cd suo && python setup.py install
3 使用
3.1 缩写
-
获得缩写
from suo import suo result = suo("阿伟死了") print(result) # "awsl"
3.2 扩写
-
获得扩写
from suo import kuo result = kuo("awsl") print(result) # "阿伟死了"
-
获得所有可能的扩写
from suo import kuo result = kuo("awsl", show_all=True) print(result) # ["阿伟死了", "啊我死了']
4 许可
5 参考
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
suo-0.0.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
suo-0.0.2-py3-none-any.whl
(4.9 kB
view hashes)