Skip to main content

替换掉字符串中的中文符号以及全角符号转换为半角符号

Project description

symbol_convert

目前:

  1. 用于文本清洗中将中文符号转换为英文符号
  2. 全角符号转换为半角符号

安装

可以直接 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

This version

0.1

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)

Uploaded Source

Built Distribution

symbol_convert-0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page