Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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, 如拼音模糊匹配,全角字符处理等

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_match

string = '张三丰来了'
match = '章叁风'
print(chinese_fuzzy_match(match, string))
```