一 . pypinyin from pypinyin import lazy_pinyin, TONE, TONE2, TONE3 word = '孙悟空' print(lazy_pinyin(word, style=TONE)) # ['sūn', 'wù', 'kōng'] print(lazy_pinyin(word, style=TONE2)) # ['su1n', 'wu4', 'ko1ng'] print(''.join(lazy_pinyin(word, style=TONE2))…