题解 | #单词倒排#
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
# 字符串的处理与拼接
str = input() out = '' for i in str: if not (i.isspace()&nbs***bsp;i.isalpha()): i = ' ' out = out + i lst = out.split() print(' '.join(lst[::-1]))