题解 | #单词倒排#
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
while True:
try:
inpt = input()
for i in inpt:
if not i.isalpha():
inpt = inpt.replace(i, ' ')
for i in inpt.split()[::-1]:
print(i, end=" ")
except:
break
