题解 | #句子逆序#
句子逆序
http://www.nowcoder.com/practice/48b3cb4e3c694d9da5526e6255bb73c3
a=input()
b=[]
c=""
for i in range(len(a)):
if a[i] == " ":
b.append(c)
c=""
else:
c+=a[i]
if i == len(a)-1:
b.append(c)
for i in range(1,len(b)+1):
print(b[-i],end=" ")