1. 首页
  2. 数据库
  3. 其它
  4. num2words:Golang软件包用于将数字转换为单词 源码

num2words:Golang软件包用于将数字转换为单词 源码

上传者: 2021-04-19 02:43:50上传 ZIP文件 6.18KB 热度 11次
字数 Golang软件包将数字转换成单词。 例如: 148变成one hundred forty-eight 。 受此python库启发。 安装 运行go get -u github.com/vinbyte/num2words 用法 package main import ( "fmt" "github/vinbyte/num2words" ) func main() { n2w := num2words.New("en") res := n2w.NumberToWord(349) fmt.Println(res) } //output : three hundred forty-n
下载地址
用户评论