首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Golang 中文转拼音

    翻遍整个 GitHub , Golang 中文转拼音类库, 怎么就这么难找呢? 于是我造了一个轮子: 中文转拼音类库. 目前来说应该是最好用的了....`, "-").Unicode() fmt.Println(s) // 转换简体中文和繁体中文, 转换为带 斜杆/ 分隔的拼音字符串 // 不显示声调 // wo/he/shi/neng/bao...`).Unicode() fmt.Println(s) // 转换简体中文和繁体中文, 转换为带 空格 分隔的拼音字符串 // 不显示声调 // wo, he shi neng bao fu?...// mò-qí-wò-xǐ-huan-chī-suān-nǎi s = dict.Name(`万俟沃喜欢吃酸奶`, "-").Unicode() fmt.Println(s) // 转换简体中文和繁体中文...dict.Name(`万俟沃喜欢吃酸奶`, "/").None() fmt.Println(s) // ---- // 转换拼音简写: Dict.Abbr // ---- // 转换简体中文和繁体中文

    1.7K20
    领券