答案 0 :(得分:1)
有很多方法可以做到这一点。对于静态数据,我会这样做
temperature = [[6, 13, 5],
[5, 12, 6],
[9, 17, 8],
[9, 20, 9],
[7, 15, 6],
[6, 13, 6],
[7, 13, 6]]
请注意,您在这里实际做的是制作“列表清单”
>>> temperature[6]
[7, 13, 6]
>>> temperature[6][2]
6
答案 1 :(得分:0)
arrayex = [[1, 2, 3],
[2, 4, 6],
[3, 6, 9],
[4, 8, 12],
[5, 10, 15],
[6, 12, 18],
[7, 14, 21]]
这就是我通常做的事情