python 矩阵知识

来源:互联网 发布:淘宝上的俄罗斯罐头 编辑:程序博客网 时间:2024/06/14 01:30

a=[[1,2],[2,3],[3,4]]

求矩阵的width    len(a[0])  

求矩阵的hight    len(a)