利用python的numpy创建矩阵并对其赋值
2016-06-13 10:20
399 查看
创建一个3X3的矩阵并对其赋值:
运行结果:
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]
相关文章推荐
- python-集合
- python3 pyqt5,qt5环境搭建
- 【转载】python获取文件及文件夹大小
- python遇到IndentationError: unexpected indent
- python自动化环境搭建
- python自动化环境搭建
- python的文件操作说明
- python 字符串的split()函数详解
- python变量名感悟
- python的反射
- python 新式类和旧式类
- 一周stackoverflow热门问题选登:如何正确的理解python for循环中的else用法?
- python之sklearn
- 踩的python列表及for循环一个坑儿
- python之scipy
- python获取os.system的执行结果
- python---学习链接
- python之numpy
- python-登录-注册-修改密码
- python中class 的一行式构造器