Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

digit2chinese-2023.1.20.13.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

digit2chinese-2023.1.20.13-py3-none-any.whl (3.3 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