执行下列两段Python代码,输出的结果相同。
s = list("CCF-GESP")
i, j = 0, len(s) - 1
while i < j:
s[i], s[j] = s[j], s[i]
i += 1
j -= 1
print("".join(s))
s[:] = s[::-1]