本文共 294 字,大约阅读时间需要 1 分钟。
if __name__ == '__main__': words = input().split(" ") n_words = [] while len(words) > 0: n_words.append(words.pop()) for i in range(0, len(n_words)): if i == len(n_words) - 1: print(n_words[i], end='') else: print(n_words[i], end=' ')
转载地址:http://upaxb.baihongyu.com/