中国地区邮编经纬度/工具.
Project description
中国地区邮编经纬度/工具(Python 版)
找到中国地区的主要城市的经纬度与邮编
关于
- GitHub: https://github.com/sfyc23/China-zip-code-latitude-and-longitude
- License: MIT license
- PyPI: https://pypi.org/project/china-region/
- Python version: 3
特性
- 将词组转成五笔编码。比如词语:生死有命。换成五笔码为:'tgdw';
- 返回汉字的所有可能的编码。如汉字:为 。换成五笔码为: 'ylyi', 'yly', 'yl', 'o';
- 将一段句子,转成五笔码。如:天气不错,我们去散步吧!:五笔码为:'gdi', 'rnb', 'gii', 'qajg', ',', 'trnt', 'wun', 'fcu', 'aety', 'hir', 'kcn', '!'
安装
$ pip install china-region
升级
$ pip install -U china-region
使用示例
>>> from pywubi import wubi
>>> wubi('我爱你')
['trnt', 'epdc', 'wqiy']
>>> wubi('我爱你',multicode=True) # 返回汉字的所有可能的五笔编码
[['trnt', 'trn', 'q'], ['epdc', 'epd', 'ep'], ['wqiy', 'wqi', 'wq']]
>>> wubi('我爱你', single=False) # 以词组的方法处理这些汉字
['tewq']
Lincese
MIT License
Copyright (c) 2019 Thunder Bouble
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
china_region-0.0.5.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for china_region-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e436e23b9bc63f43efc76fe7a6a675077b99ddec8a2e200afcaa934c1a393d03 |
|
MD5 | edab1d0b17128edd44a1a7ead6611097 |
|
BLAKE2b-256 | bfb85f0afc3d1919ea68abb1b8c9b1e56067f2b1a911d1b93489c2071a352107 |