我想问个python的数组问题

给定一个三维数组(3,1,3):array [ [ [1, 2, 3] ], [ [4, 5, 6] ],[ [7, 8, 9] ]
有什么办法可以给这三块数组分别打上标签1、2、3;不管怎么打乱数组顺序,我调用标签就可以改变顺序呢

import time

three_array = {"1": [1, 2, 3], "2": [4, 5, 6], "3": [7, 8, 9]}
print('调整前:')
for i in three_array:
print(i, three_array[i])
three_array_temp = three_array["1"]
three_array["1"] = three_array["2"]
three_array["2"] = three_array["3"]
three_array["3"] = three_array_temp
time.sleep(1)
print('调整后:')
for i in three_array:
print(i, three_array[i])

完全没明白你想表达什么

list {Map{"1",[1,2,3]},Map{"3",[1,2,3]},Map{"2",[1,2,3]}}
类似这样 把里面的list用map包起来 key 就是序号 val 就是数组