python问题首字母缩写
Acronyms
(首字母缩写词)
Writeaprogram(inafilecalledacronyms.py)thatasksauserforaphraseandprintstheacronymofthatphrase.Youprogramshouldignorethewordsthe,of,andat.Herearesomeexamples:
(写一个程序(一个名为acronyms.py),要求用户一个短语,并打印出这句话的缩写.你的程序应该忽略的话,和.下面是一些例子:)
inputoutput
UniversityofBritishColumbiaUBC
AlexanderCollegeAC
SimonFraserUniversitySFU
MassachusettsInstituteofTechnologyMIT
Seeyoulatersyl
Berightbackbrb
Talktoyoulaterttyl