繁体简体转换
Project description
1. 功能
(1)繁体转换成简体
(2)简体转换成繁体
2. 快速开始
(1)繁体转简体
from pylangtools.langconv import Converter if __name__=="__main__": traditional_sentence = '陳奕迅' simplified_sentence = Converter('zh-hans').convert(traditional_sentence) print(simplified_sentence)#陈奕迅
(2)简体转繁体
from pylangtools.langconv import Converter if __name__=="__main__": simplified_sentence = '陈奕迅' traditional_sentence = Converter('zh-hant').convert(simplified_sentence) print(traditional_sentence)#陳奕迅
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
pylangtools-0.0.2.tar.gz
(324.5 kB
view details)
File details
Details for the file pylangtools-0.0.2.tar.gz
.
File metadata
- Download URL: pylangtools-0.0.2.tar.gz
- Upload date:
- Size: 324.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd8cfe8ec6c4713135a764f28f338bb6f4b5e020a647b04ecad0dd02360c570 |
|
MD5 | f0f081c96d878e0a59c02ef168d1f4e2 |
|
BLAKE2b-256 | 1c4fe2c37c402f1f6b2d90e5b1a29d9bd0a458238424115c813a5616f0c62077 |