摘要: 格式pip install package -i --trusted -host http://pypi.douban.com/simple 阅读全文
posted @ 2017-11-21 11:32 啤酒与炸鸡 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 卸载spyer重新安装,conda install spyder,点击Reset Spyder Settings 阅读全文
posted @ 2015-11-25 10:23 啤酒与炸鸡 阅读(1941) 评论(0) 推荐(0) 编辑
摘要: with open('./matmul.py') as f: try: while True: line=next(f) print(line) except StopIteration: ... 阅读全文
posted @ 2015-11-24 19:42 啤酒与炸鸡 阅读(9262) 评论(0) 推荐(0) 编辑
摘要: import sklearn报错:Traceback (most recent call last): File "", line 1, in import sklearn File "D:\Python27\lib\site-packages\scikit_learn-0.15.2-py... 阅读全文
posted @ 2015-03-08 01:57 啤酒与炸鸡 阅读(8249) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-03-08 00:40 啤酒与炸鸡 阅读(262) 评论(0) 推荐(0) 编辑
摘要: from matplotlib import pyplot as pltfrom sklearn.datasets import load_irisimport numpy as npdata=load_iris()feature_names=data['featrue_names']target=... 阅读全文
posted @ 2015-03-07 22:19 啤酒与炸鸡 阅读(1409) 评论(0) 推荐(0) 编辑
摘要: 定义了一个函数error,单独保存在了error.py中,def error(f,x,y): return sp.sum((f(x)-y)**2)第一次使用时报错:TypeError: 'module' object is not callable思考之后发现,error作为一个模块,和它内部... 阅读全文
posted @ 2015-03-07 12:06 啤酒与炸鸡 阅读(919) 评论(0) 推荐(0) 编辑
摘要: 错误代码:Traceback (most recent call last): File "D:/Python27/1400OS_01_Codes/code/sp_genfromtxt.py", line 3, in data=sp.genfromtxt("web_traffic.tsv"... 阅读全文
posted @ 2015-03-07 10:47 啤酒与炸鸡 阅读(1035) 评论(0) 推荐(0) 编辑