def reverseWords(input):# 通过空格将字符串分隔符,把各个单词分隔为列表inputWords = input.split(" ")# 翻转字符串# 假设列表 list = [1,2,3,4], # list[0]=1, list[1]=2 ……