# -*- coding: utf-8 -*-
import pypinyin
from pypinyin import pinyin
juzi = '绿 是 阳春 烟 景'
line = juzi.split(' ')
sentence = ''
for j in range(len(line)):
phrase = pinyin(u'{0}'.format(line[j]), style=pypinyin.NORMAL) # 短语
words = ''
for k in range(len(phrase)):
word = phrase[k][0]
words += word + ' ' * 1
sentence = sentence + words
print(sentence)
# 输出结果
lv shi yang chun yan jing