Skip to content

python3工具包, python3 tools, 如拼音模糊匹配,全角字符处理等

License

Notifications You must be signed in to change notification settings

ibbd-dev/python3-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python3-tools

python3工具包

install

# 源码安装
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: 中文模糊匹配,支持模糊拼音

使用

from ibbd_python3_tools.chinese_fuzzy_match import chinese_fuzzy_match

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

About

python3工具包, python3 tools, 如拼音模糊匹配,全角字符处理等

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages