替换掉字符串中的中文符号以及全角符号转换为半角符号
Project description
symbol_convert
目前:
- 用于文本清洗中将中文符号转换为英文符号
- 全角符号转换为半角符号
安装
可以直接 pip
安装
pip install symbol_convert
demo
from symbol_convert import convert
str = '这是一个,【个人】deboke:'
en_str = convert(str)
print(str)
print(en_str)
> 这是一个,【中文】deboke:
> 这是一个,[中文]deboke:
版本历程
详见 history.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
symbol_convert-0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for symbol_convert-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bfb463db3445135dda42513533d46f397c8f75c604d2ee99def2c04b72575f3 |
|
MD5 | 0c4be242299d834c31e14628cc0f8964 |
|
BLAKE2b-256 | 0ab5248c526d298e086755d00ed004c0322f14618c1d551e66c333ac3c517763 |