code.club
標題:
在list中直接設出多維陣列
[打印本頁]
作者:
attach
時間:
2020-11-29 21:11
標題:
在list中直接設出多維陣列
d=[[[i for i in range(3)]
for _
in range(5)]
for _
in range(4)]
[[[0, 1, 2, 3], [0, 1, 2, 3]], [[0, 1, 2, 3], [0, 1, 2, 3]], [[0, 1, 2, 3], [0, 1, 2, 3]]]
歡迎光臨 code.club (https://code.club/)
Powered by Discuz! X3.2