目前有如下的格式:
[0,1,2,3]
[0,1,2,3]
[0,1,2,3]
[0,1,2,3]
通过改变使之成为如下格式:
[0,0,0,0]
[1,1,1,1]
[2,2,2,2]
[3,3,3,3]
提示:
[[i for i in range(4)] for j in range(4)]
时间: 2024-10-12 18:38:58
目前有如下的格式:
[0,1,2,3]
[0,1,2,3]
[0,1,2,3]
[0,1,2,3]
通过改变使之成为如下格式:
[0,0,0,0]
[1,1,1,1]
[2,2,2,2]
[3,3,3,3]
提示:
[[i for i in range(4)] for j in range(4)]