x = numpy.array([[1,2,3],[4,5,6],[7,8,9]])
print x
print x.shape

输出

[[1 2 3]
 [4 5 6]
 [7 8 9]]
(3L, 3L)
[Finished in 0.2s]

 

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2022-02-21
  • 2021-05-15
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-12-12
  • 2022-01-02
  • 2021-11-03
  • 2022-01-21
  • 2022-12-23
  • 2021-08-26
相关资源
相似解决方案