替换掉字符串中的中文符号以及全角符号转换为半角符号
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file symbol_convert-0.1.tar.gz.
File metadata
- Download URL: symbol_convert-0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91267abeffe57dd8e60ff86cee0c1b9355c21601bb2ece4d336b639eadd8da6d
|
|
| MD5 |
63f60fecedda3b550d8b62be3147f060
|
|
| BLAKE2b-256 |
746ca6411ba90d529d9f30c71172646390bd1f1715f55a3ea91edecc5cccb3b8
|
File details
Details for the file symbol_convert-0.1-py3-none-any.whl.
File metadata
- Download URL: symbol_convert-0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bfb463db3445135dda42513533d46f397c8f75c604d2ee99def2c04b72575f3
|
|
| MD5 |
0c4be242299d834c31e14628cc0f8964
|
|
| BLAKE2b-256 |
0ab5248c526d298e086755d00ed004c0322f14618c1d551e66c333ac3c517763
|