Description Usage Arguments Value Author(s) Examples
使用python3 宏包'pypinyin'给中文词语标注拼音
1 | han2pinyin(string_cn)
|
string |
汉字词 |
pinyin vector
lgm
1 2 3 4 | han2pinyin('你好')
han2pinyin('参与浮力荷载实验')
demo= "珠江是华南一大河系,流经广州市,是中国第三长的河流,仅次于长江和黄河。珠江三角洲是中国最发达的地区之一,面积约 11000 平方公里。它在面积和人口方面也是世界上最大的城市聚集区。珠江三角洲九个最大城市共有 5700 多万人口。上世纪 70 年代末中国改革开放以来,珠江三角洲已成为中国和世界主要经济区域和制造中心之一。"
paste(han2pinyin(demo),collapse = " ")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.