python二维数组单个元素赋值

当你用如下方法创建一个python二维数组时

memo = [[1] * 3] * 4

于是你得到

memo = [ [1, 1 ,1],
		 [

你可能感兴趣的:(python,list)