列表:x = [1, 6, 2, 7, 1, 6, 1]len(x)> 7我将如何拆分前 3 个和最后 3 个的列表,从而使用列表切片方法单独留下值 7?输出x[0:2,4:6] #<-- This doesn't work> [1, 6, 2, 1, 6, 1] #<-- Expected output 查看完整描述