题解 | #单词倒排#
单词倒排
https://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
while True: try: a = input() b = str() z1 = "abcdefghijklmnopqrstuvwxyz" z = z1 + z1.upper() for i in a: if i in z: b += i else: b += " " c = b.strip().split() print(" ".join(c[::-1])) except: break#HJ31#