输入格式: 字符串中的元素以空格或者多个空格分隔。 输出格式: 逆序输出字符串中的所有元素。 然后输出原列表。 然后逆序输出原列表每个元素,中间以1个空格分隔。注意:最后一个元素后面不能有空格。 输入样例: a b c e f gh 输出样例: ghfecba [‘a’, ‘b’, ‘c’, ‘e’, ‘f’, ‘gh’] gh f e c b a
s =list(input().split())
t = s[::-1]print(''.join(t))print(s)print(*t)#解包列表