摘要: import numpy as np x = np.array([[1,2,5],[2,3,5],[3,4,5],[2,3,6]]) # 输出数组的行和列数 print x.shape # (4, 3) # 只输出行数 print x.shape[0] # 4 # 只输出列数 print x.sha 阅读全文
posted @ 2017-11-22 16:23 AI菌 阅读(70269) 评论(0) 推荐(0) 编辑