python 定义数组的简单方法
1 #!/usr/bin/python 2 # Author: Missa 3 4 b = [1]*10 5 #print b 6 for i in range(0,10): 7 print b[i], 8 for i in range(0,10): 9 print b[i] 10 11 a = [[1000]*10]*10 12 #print a 13 for i in range(0,10): 14 for j in range(0,10): 15 print a[i][j],