📜  初始化二维数组 python 代码示例

📅  最后修改于: 2022-03-11 14:45:03.926000             🧑  作者: Mango

代码示例2
x = [[foo for i in range(10)] for j in range(10)]
# x is now a 10x10 array of 'foo' (which can depend on i and j if you want)