python 打印矩阵

发布时间:2019-09-06 08:53:45编辑:auto阅读(2194)

    matrix = [[0,0,0,1,0],
    		  [0,0,0,0,0],
    		  [0,2,0,0,0],
    		  [0,0,0,0,0],
    		  [0,0,0,3,0]
    		 ]
    for i in matrix:
    	print (i)
    input()


关键字