Compare commits
2 Commits
62649f3f56
...
64dfdb1420
| Author | SHA1 | Date | |
|---|---|---|---|
| 64dfdb1420 | |||
| 3aed0adb63 |
@@ -17,6 +17,7 @@ wo de diannao yòu kuai4 yòu qiang2
|
|||||||
|
|
||||||
你的日语课伤得怎么样?
|
你的日语课伤得怎么样?
|
||||||
Nǐ de rìyǔ kè shāng dé zěnme yàng?
|
Nǐ de rìyǔ kè shāng dé zěnme yàng?
|
||||||
|
How is your Japanese class going?
|
||||||
|
|
||||||
她非常有耐心
|
她非常有耐心
|
||||||
Tā fēicháng yǒu nàixīn
|
Tā fēicháng yǒu nàixīn
|
||||||
|
|||||||
12
_temp_pinyin_script.py
Normal file
12
_temp_pinyin_script.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
from pypinyin import pinyin, Style
|
||||||
|
|
||||||
|
# The phrase to convert
|
||||||
|
phrase = "眼睛"
|
||||||
|
|
||||||
|
# Generate pinyin with tone marks
|
||||||
|
pinyin_list = pinyin(phrase, style=Style.TONE)
|
||||||
|
|
||||||
|
# Flatten the list and join
|
||||||
|
pinyin_str = " ".join([item[0] for item in pinyin_list])
|
||||||
|
|
||||||
|
print(pinyin_str)
|
||||||
Reference in New Issue
Block a user