Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibbd-dev/python3-tools
python3工具包, python3 tools, 如拼音模糊匹配,全角字符处理等
https://github.com/ibbd-dev/python3-tools
pinyin python tools utils
Last synced: 6 days ago
JSON representation
python3工具包, python3 tools, 如拼音模糊匹配,全角字符处理等
- Host: GitHub
- URL: https://github.com/ibbd-dev/python3-tools
- Owner: ibbd-dev
- License: mit
- Created: 2018-06-09T09:07:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T03:27:56.000Z (over 5 years ago)
- Last Synced: 2023-03-06T13:05:58.007Z (over 1 year ago)
- Topics: pinyin, python, tools, utils
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python3-tools
python3工具包## install
```sh
# 源码安装
python3 setup.py install# 使用pip安装
pip3 install git+https://github.com/ibbd-dev/python3-tools
```## 功能
- strings: 扩展的字符串模块
- conv_q2b: 全角字符转化为半角字符
- conv_single_arabic2chs: 将字符串中的单个阿拉伯数字转化为中文数字
- conv_chinese_digits_to_arabic: 中文数字转化为阿拉伯数字
- chinese_fuzzy_match: 中文模糊匹配,支持模糊拼音## 使用
```python
from ibbd_python3_tools.chinese_fuzzy_match import chinese_fuzzy_matchstring = '张三丰来了'
match = '章叁风'
print(chinese_fuzzy_match(match, string))
```