Skip to content

Instantly share code, notes, and snippets.

@yjyao
yjyao / zhnum.py
Last active February 13, 2022 21:18
arabic to chinese number conversion 数字中文读法生成器
import bisect
import re
import unittest
zhdigits = '零一二三四五六七八九'
zhplaces = {
0: '' ,
1: '十',
2: '百',