myList = [([0] * 3) for i in range(4)]
print (myList)
[[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]
# 只输出行数 print x.shape[0] # 4 # 只输出列数 print x.shape[1] # 3
myList = [([0] * 3) for i in range(4)]
print (myList)
[[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]
# 只输出行数 print x.shape[0] # 4 # 只输出列数 print x.shape[1] # 3