#!/usr/bin/env python3.6import tkinterfrom tkinter import Tkimport parser #分析器模块from tkinter import ENDimport mathimport datetimefrom time import loca ...
分类:
其他好文 时间:
2018-05-04 14:15:53
阅读次数:
1399
本人为一名刚开始学Python爬虫的小白,开贴仅为记录下自己的学习历程,方便做review 要爬取链接:http://tuan.bookschina.com/ 要爬取内容: 图书名称, 图书价格, 以及对应预览图的link 本文用到py packages: requests, BeautifulSo ...
分类:
编程语言 时间:
2018-05-02 21:10:18
阅读次数:
495
const express = require('express'); const expressStatic = require('express-static'); const bodyparser = require('body-parser'); const multer = require ...
分类:
Web程序 时间:
2018-05-02 21:08:31
阅读次数:
1973
https://statweb.stanford.edu/~owen/mc/Ch-var-is.pdf https://zhuanlan.zhihu.com/p/29934206 blue curve is the lower bounded one conjugate gradient to so ...
分类:
其他好文 时间:
2018-05-01 20:50:24
阅读次数:
394
代码 optparse模块 optparse is a more convenient, flexible, and powerful library for parsing command line options than the old getopt module. 正如官方文档所说 The ...
分类:
编程语言 时间:
2018-04-30 17:52:02
阅读次数:
197
body-parser Node.js(Express) HTTP请求体解析中间件 2016年06月08日 781 声明 在HTTP请求中,POST、PUT和PATCH三种请求方法中包含请求体,Node.js 原生HTTP模块中,请求体要基于流的方式接收和解析。body-parser是一个HTTP请 ...
分类:
Web程序 时间:
2018-04-29 01:26:41
阅读次数:
248
通过这里的回答,我们可以知道: Tomcat在 7.0.73, 8.0.39, 8.5.7 版本后,添加了对于http头的验证。 具体来说,就是添加了些规则去限制HTTP头的规范性 参考这里 具体来说: org.apache.tomcat.util.http.parser.HttpParser#IS ...
分类:
其他好文 时间:
2018-04-28 15:55:58
阅读次数:
226
元素节点、元素树 >>> help(parse) Help on function parse in module xml.etree.ElementTree: parse(source, parser=None) >>> help(et.getroot) Help on method getroo ...
分类:
其他好文 时间:
2018-04-28 14:17:10
阅读次数:
131
又到了一节很重要的课,因为这个学习理论是从统计角度为机器学习算法提供了一个理论基础。 学习理论 问题背景 先回顾一下我们第一节课提到的机器学习的组成: 第一节课只是简单的提了一下,现在我们要真正来分析这张图了。首先机器学习的最终目的就是得到真正的映射f,但是f我们无法得到,所以拿一个g去拟合。这是什 ...
分类:
其他好文 时间:
2018-04-27 02:45:30
阅读次数:
181
如果要计算一个整形中的位数有多少位被置位,我们的第一想法就是循环查找。现在我们可以参考:http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel 利于这个算法,我们只需要12次操作就可以找出int(32)中被置位 ...
分类:
其他好文 时间:
2018-04-26 16:58:19
阅读次数:
205