将整数转换为数字名
numbername的Python项目详细描述
安装
pip安装数字名称
用法
将整数转换为数字名
from numbername import to_number_name print to_number_name(1123) #ouputs: one thousand one hundred and twenty three
将整数转换为逗号位置的数字
from numbername import to_comma_placed print to_number_name(1123) #outputs: 1,123
限制
- 仅适用于非负数
- 仅适用于整数