【文件属性】:
文件名称:replacer:一个简单的字符串翻译,如正则表达式,但匹配多个模式
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-04 11:39:44
Python
替代者
一个简单的字符串翻译,如正则表达式,但匹配多个模式
sudo pip3 install -U git+https://github.com/ecchochan/replacer.git
用法
from replacer import Replacer
mapping_wf_exception = {
'為什麼' :( # match 為什麼
'點解' , # replace with 點解
'認以難設改訂' # not preceded by these characters
'減增定略喻因'
'行視較稱分視'
'行即作變約能'
'降定轉淪化作行' ,
'麼'
【文件预览】:
replacer-master
----replacer()
--------__init__.py(69B)
--------replacer.pyx(21KB)
----setup.py(457B)
----.gitignore(101B)
----README.md(3KB)