
python
Daniel_mc
这个作者很懒,什么都没留下…
展开
-
Python极简入门
x = 3x = 3翻译 2017-12-11 13:51:06 · 307 阅读 · 0 评论 -
centos上更新Python版本
先下载Python包:wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz解压:tar -zxvf Python-3.5.1.tgz安装三连击:./configure --prefix=/usr/local/python/python3 --》 make --》 make install(--prefix很必要,原创 2017-11-27 10:44:01 · 542 阅读 · 0 评论 -
Python极简入门(二)
NumpyNumpy是Python科学计算的核心库数组Arrays:一个numpy数组是一个由不同数值组成的网格,网格里的数据都是一种类型,可以通过非负整型元组访问。数组的大小是一个由整型数构成的元组,用以描述数组不同维度上的大小。创建数组可以用列表,然后方括号访问:import numpy as npa = np.array([1, 2, 3]) # Create a ra翻译 2017-12-20 14:25:27 · 229 阅读 · 0 评论 -
Python极简入门(三)
广播Broadcasting广播可以让Numpy不同大小的矩阵进行数学计算,e.g.把一个向量加到矩阵每一行import numpy as np# We will add the vector v to each row of the matrix x,# storing the result in the matrix yx = np.array([[1,2,3], [4,5,6翻译 2017-12-27 10:34:43 · 450 阅读 · 0 评论