题目描述
blablabla
样例
class Solution(object):
def reverseWords(self, s):
"""
:type s: str
:rtype: str
"""
tmp = list(reversed(s.split(' ')))
res = ''
for t in tmp[:-1]:
res += t
res += ' '
return res + tmp[-1]
return ” “.join((s.split(” “))[::-1])