Python
work_and_study
这个作者很懒,什么都没留下…
展开
-
Python之NumPy库
ndarryn维数组对象,所有元素类型相同np.ndarry([1,2],[3,4]);使用NumPy函数创建ndarray数组 np.arange(10)np.ones(shape) x=np.ones((3,6))//三行六列 x.shape是(3,6)np.zeros(shape)np.eye(5)//正方的N*N单位矩阵,对角线1,其余0np.ones_like(a)//根据数组a的形原创 2017-05-29 14:57:43 · 494 阅读 · 0 评论 -
Python之Pandas库
Series 一组数据与之相关的数据索引组成,索引从0开始pd.Series([9,8,7,6])从标量值创建 pd.Series(25,index=[‘a’,’b’])//index不能省略,每一项都是25从字典类型创建 pd.Series({‘a’:9,’b’:1}) pd.Series({‘a’:9,’b’:1},index=[‘c’,’a’])//这里index只是从字典中进行选原创 2017-05-29 14:57:08 · 448 阅读 · 0 评论 -
python 下运行redis
如图所示原创 2017-09-22 21:44:51 · 438 阅读 · 0 评论 -
anaconda安装python包(python-Levenshtein)
不需要本地提前下载该python包打开“Anaconda Prompt”不需要切换路径直接”pip install python-Levenshtein“原创 2017-09-21 09:35:10 · 8094 阅读 · 0 评论 -
Python的学习笔记
1.exit()退出python命令行(>>>) 2.liunx下创建文件 gedit demo.py原创 2017-05-08 22:14:52 · 284 阅读 · 0 评论