摘要: 1、 Optimization a) Local Optimizationi. minimize(fun, x0[, args, method, jac, hess, ...]) Minimization of scalar function of one or more variables.ii. 阅读全文
posted @ 2017-08-17 22:32 debuggor 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-01 18:40 debuggor 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 经过搜索,发现是本地的Twisted库的版本问题(具体可以参见这个)。 而我在本地使用的是anaconda python发行版,在安装Scrapy的时候默认安装的Twisted库是17.1.0。只要把Twisted库降级到16.6.0即可(使用conda install Twisted==16.6. 阅读全文
posted @ 2017-08-01 14:58 debuggor 阅读(3619) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-01 09:59 debuggor 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #-*- coding:utf-8 -*- import urllib2 import re url = 'https://book.douban.com/tag/%E5%B0%8F%E8%AF%B4' request = urllib2.Request(url) urlopen = urllib2.urlopen(request) content = urlopen.read() reg_0... 阅读全文
posted @ 2017-07-31 11:33 debuggor 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-30 16:56 debuggor 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1、数据结构与算法绪论 什么是数据结构? 程序设计=数据结构+算法 数据结构就是关系,即数据元素相互之间存在的一种或多种特定关系的集合。数据结构分为逻辑结构和物理结构。 逻辑机构:数据对象中数据元素之间的相互关系 物理结构:数据的逻辑结构在计算机中的存储形式。四大逻辑结构:1. 集合结构:结构中的数 阅读全文
posted @ 2017-07-29 15:59 debuggor 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-29 12:14 debuggor 阅读(142) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # encoding:utf-8 import math import numpy import time import matplotlib.pyplot as plt def sigmoid(x): return 1.0 / (1 + numpy.ex 阅读全文
posted @ 2017-07-27 23:48 debuggor 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1、windows 下,CMD的一些命令: dir:列出当前的所有文件 time:打印当前的时间 tree:列出当前目录下的子结构 在cmd中进入了某种模式,退出可以尝试以下命令:q 、exit()、Ctrl+c、Ctrl+z 运行程序:在cmd里面直接输入程序名称。如:notepad、calc 按 阅读全文
posted @ 2017-07-26 17:08 debuggor 阅读(1178) 评论(0) 推荐(0) 编辑