中文数字转阿拉伯数字_汉字一二三转数字_大数据苦行僧—yisurvey123的博客-CSDN博客

网站介绍:import cn2an# 在 strict 模式下,只有严格符合的才可以进行转化output = cn2an.cn2an("一百二十三", "strict")# or output = cn2an.cn2an("一二三")print(output)# 123# 在 normal 模式下,还可以将 一二三 进行转化output = cn2an.cn2an("一二三", "normal")print(output)# 123# 在 smart 模式下,还可以将混合描述的 1百23 进行_汉字一二三转数字