懵懂的菜鸟

Stay hungry,Stay foolish.

导航

python创建二维数组

1     c=[[0]*3 for i in range(3)]
2 
3     c=[[0 for i in range(3)] for i in range(3)]

 

posted on 2017-08-31 21:40  懵懂的菜鸟  阅读(469)  评论(0编辑  收藏  举报