提取短语的首字母缩略词,要求大写编写一个程序可以根据用户输入的短语输出其缩略词。
l=str(input()) l=l.split(" ") while "" in l: l.remove("") dy="" for i in l: i=i.title() dy+=i[0] print(dy)