摘要:
格式pip install package -i --trusted -host http://pypi.douban.com/simple 阅读全文
摘要:
卸载spyer重新安装,conda install spyder,点击Reset Spyder Settings 阅读全文
摘要:
with open('./matmul.py') as f: try: while True: line=next(f) print(line) except StopIteration: ... 阅读全文
摘要:
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... 阅读全文
摘要:
阅读全文
摘要:
from matplotlib import pyplot as pltfrom sklearn.datasets import load_irisimport numpy as npdata=load_iris()feature_names=data['featrue_names']target=... 阅读全文
摘要:
定义了一个函数error,单独保存在了error.py中,def error(f,x,y): return sp.sum((f(x)-y)**2)第一次使用时报错:TypeError: 'module' object is not callable思考之后发现,error作为一个模块,和它内部... 阅读全文
摘要:
错误代码:Traceback (most recent call last): File "D:/Python27/1400OS_01_Codes/code/sp_genfromtxt.py", line 3, in data=sp.genfromtxt("web_traffic.tsv"... 阅读全文