Skip to content

祖的多音字判断返回是否有误 #67

@SilvesSun

Description

@SilvesSun
package main

import (
	"fmt"
	"github.com/mozillazg/go-pinyin"
)

func main() {
	// TIP Press <shortcut actionId="ShowIntentionActions"/> when your caret is at the underlined or highlighted text
	// to see how GoLand suggests fixing it.
	ph := pinyin.NewArgs()
	ph.Heteronym = true
	pinyinList := pinyin.Pinyin("祖", ph)
	fmt.Println(pinyinList)
}

打印结果为

[[zu jie]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions