check = 'aeiouAEIOU'
for i in range(len(string)):
if string in check and i == len(string)-1:
return string.upper()
elif string in check and string not in check:
return string[:i+1].lower()+string.upper()+string.lower()
else:
return string.lower()+string.upper()
看看
页:
1
[2]