print('输入一句英文句子,例如:the scenery along the should be and the mood at the view,输出其中最长的单词及长度。')
a='the scenery along the should be and the mood at the view'
b_list=a.split(' ')
#print(b_list)
b_list.sort(key=len)
#print(b_list)
a_str=b_list[-1]
print(f"the scenery along the should be and the mood at the view中最长的单词是{a_str},长度为{len(a_str)}")