📅  最后修改于: 2022-03-11 14:46:43.046000             🧑  作者: Mango
def pig_latin(word):
word = word.strip().lower()
pig_latin =''
vowel = ['a','e','i','o','u']
for i in range(len(word)):
if word[i] in vowel:
if i==0:
word+="w"
pig_latin+=word[i:]+word[0:i]+"ay"
break
return pig_latin