自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 【爬虫】ip地址查询/亚马逊反爬虫/百度关键字搜索

import requests url = "http://www.ip138.com/ips138.asp?ip=" ip = "202.204.80.112" r = requests.get(url+ip) r.encoding=r.apparent_encoding print(r.text) import requests url = "http://www.amazon.cn...

2019-04-30 23:53:58 729

原创 【爬虫】爬取网页图片

import requests import os root = "d://pics//" url = "http://img0.dili360.com/pic/2019/04/16/5cb59f9e175f06y17292216_t.jpg" path = root + url.split('/')[-1] #按/结尾的最后一部分 try: if not os.path.exi...

2019-04-30 23:15:30 204

转载 【转载】关于HTTP协议,一篇就够了

HTTP简介 HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wide Web )服务器传输超文本到本地浏览器的传送协议。 HTTP是一个基于TCP/IP通信协议来传递数据(HTML 文件, 图片文件, 查询结果等)。 HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系...

2019-04-30 11:05:27 178

原创 【牛顿迭代法】C++实现

#include <cstdio> #include <cstdlib> #include <iostream> #include <time.h> #include <math.h> using namespace std; double f(double x) { return x+exp(x)-2; } double d...

2019-04-28 10:24:42 2074

原创 【python】词频统计

#KochDrawV2.py import jieba txt = open("C:\\Users\\94079\\Desktop\\test.txt","r",encoding="utf-8").read() words = jieba.lcut(txt) counts = {} for word in words: if len(word) == 1: contin...

2019-04-22 09:55:27 108

转载 【模拟退火tsp】matlab解法

ansrecord=[]; coordinates=[ 1 288 149 2 288 129 3 270 133 4 256 141 5 256 157 6 246 157 7 236 169 8 228 169 9 228 161 10 220 169 11 212 169 12 204 169 13 196 169 14 188 169 15 1...

2019-04-22 09:52:28 339

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除