Logo
Акаша
哪位熟悉Python的同学能给我写个函数?谢谢!

参数:1个字符串(仅包含1个或若干个汉字)
返回:1个嵌套字符串列表:
[[声母,韵母,声调],[笔画名]]
[[声母,韵母,声调],[笔画名]]
[[声母,韵母,声调],[笔画名]]
……………………………………………

注:介母不算在韵母范围内,如"响"返回为[["x","ang",3],["竖","横折","横","撇","竖","横折钩","竖","横折","横"]

注:如果有多音字则将多个音同时返回,如"为"返回为[[["w","ei",2],["w","ei",4]],4,["点","撇","横折钩","点"]]

如"中学"返回为[[[["zh","ong",1],["zh","ong",4]],["竖","横折","横","竖"]],[["x","ue",2],["点","点","撇","点","横钩","横钩","竖钩","横"]]]
1 月 前

只有该用户 (Xwofficial) 的关注者才能看到他们的帖子

只有该用户 (Xwofficial) 的关注者才能看到他们的帖子

Акаша
1 月 前
回应 XiaoWenGroup 对他的 帖子
大佬牛逼