Convert numbers into uppercase Chinese characters
Project description
功能
把数字转化为大写
用法
import digit2chinese
chinese = digit2chinese.digit2chinese(1234567891)
print(chinese) # 壹拾贰亿叁仟肆佰伍拾陆万柒仟捌佰玖拾壹
or
chinese = digit2chinese.digit2chinese(1234567891,style=1)
print(chinese) # 十二亿三千四百五十六万七千八百九十一
bug反馈
如果发现bug请反馈至yanchengxin@yeah.net 谢谢
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
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 digit2chinese-2023.1.20.13.tar.gz.
File metadata
- Download URL: digit2chinese-2023.1.20.13.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3511af7f7eea2b97becbbe98fba9c610b87d04f428e6fc9aeb06e7dd97365353
|
|
| MD5 |
c1a4ad617d22d8b7f8ede71e403189a2
|
|
| BLAKE2b-256 |
5114a43b28e13bc103ac31adeaf1a5c11a85b027eab1cbce04d03731128a611d
|
File details
Details for the file digit2chinese-2023.1.20.13-py3-none-any.whl.
File metadata
- Download URL: digit2chinese-2023.1.20.13-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b31e303780726e7ba930f6ce91463c6dcdc5f29b42efb8f57afba69cd2f1b112
|
|
| MD5 |
8b3b60d5b5d9d56429bff7255a543f77
|
|
| BLAKE2b-256 |
f963b84f99b06b0738e40003c8681cc38d4db475bb3e589f83ad4bba0ac8831f
|