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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

digit2chinese-2023.1.20.13-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for digit2chinese-2023.1.20.13.tar.gz
Algorithm Hash digest
SHA256 3511af7f7eea2b97becbbe98fba9c610b87d04f428e6fc9aeb06e7dd97365353
MD5 c1a4ad617d22d8b7f8ede71e403189a2
BLAKE2b-256 5114a43b28e13bc103ac31adeaf1a5c11a85b027eab1cbce04d03731128a611d

See more details on using hashes here.

File details

Details for the file digit2chinese-2023.1.20.13-py3-none-any.whl.

File metadata

File hashes

Hashes for digit2chinese-2023.1.20.13-py3-none-any.whl
Algorithm Hash digest
SHA256 b31e303780726e7ba930f6ce91463c6dcdc5f29b42efb8f57afba69cd2f1b112
MD5 8b3b60d5b5d9d56429bff7255a543f77
BLAKE2b-256 f963b84f99b06b0738e40003c8681cc38d4db475bb3e589f83ad4bba0ac8831f

See more details on using hashes here.

Supported by

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