这里考虑了两种情况: 一、直接赋值初始化 >>> row = 3 >>> col = 4 >>> matrix = [[0]*col for i in range(row)] >>> matrix [[0, 0, 0, 0], [0