题解 | #单词倒排#
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
while True:
try:
a=input()
for i in range(len(a)):
if not a[i].isalpha():
a=a.replace(a[i],' ')
#print(a)
b= a.split(' ')
b.reverse()
print(' '.join(b))
except:
break