You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
今天看到一些未解决的issue,自己尝试着写了一些代码来解决,支持任意位数的非负整数相互转换,仅供参考。
https://github.com/badiku/cnnumber
下面这些issue都可以解决:
assert 解析中文到数字('壹拾万零叁仟肆佰伍拾叁') == 103453 #80
assert 解析中文到数字('一千一十') == 1010 #79
assert 解析中文到数字('一百十一') == 111 #79
assert 解析中文到数字('十万零一千') == 101000 #78
assert 解析中文到数字('一亿五千万零六千三百五十五') == 150006355 #59
assert 解析中文到数字('一百十六') == 116 #51
assert 解析中文到数字('一百01') == 101 #50
Beta Was this translation helpful? Give feedback.
All reactions