web服务器 web中间件 总结 HTTP原理过程 HTTP协议定义Web客户端如何从Web服务器请求Web页面,以及服务器如何把Web页面传送给客户端。HTTP协议采用了请求/响应模型。客户端向服务器发送一个请求报文,请求报文包含请求的方法、URL、协议版本、请求头部和请求数据。服务器以一个状态行 ...
分类:
Web程序 时间:
2021-06-25 16:47:32
阅读次数:
0
1.在settings中开启Cookie COOKIES_ENABLED = True 2.重写 start_requests方法 初始化开始url(方便添加cookie) 列: from scrapy import Request class ASpider(CrawlSpider): name ...
分类:
其他好文 时间:
2021-06-25 16:45:37
阅读次数:
0
首先需要导入 import openpyxl 1、打开excel,并且获取sheet 1 inwb=openpyxl.load_workbook(Path_generate) 2 Sheetnames=inwb.get_sheet_names() 3 ws=inwb.get_sheet_by_nam ...
分类:
编程语言 时间:
2021-06-25 16:43:54
阅读次数:
0
from urllib.request import urlopen from bs4 import BeautifulSoup as BS url = "http://www.lagou.com" # (1)获取response对象 response = urlopen(url) # (2)获得r ...
分类:
Web程序 时间:
2021-06-25 16:38:55
阅读次数:
0
###js var href='http://localhost:8083/datas/dataflow/logicJob?id=CMZJJO2100000001&type=proLook' var urlParams = (function(url){ var result = new Objec ...
分类:
其他好文 时间:
2021-06-25 16:32:45
阅读次数:
0
逐行入栈,排序后直接输出第k小的数据 # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self. ...
分类:
编程语言 时间:
2021-06-25 16:32:21
阅读次数:
0
unittest相关内容 一、什么是unittest unittest是Python单元测试框架,类似于JUnit框架。 unittest中有4个重要的概念:test fixture, test case, test suite, test runner Testcase: 一个TestCase的实 ...
分类:
其他好文 时间:
2021-06-24 18:12:57
阅读次数:
0
1.简单图形 数据: 代码: import pandas as pd import matplotlib.pyplot as plt catering = r'C:\Users\xxx\Desktop\data\课题.xls' df = pd.read_excel(catering) plt.rcP ...
分类:
编程语言 时间:
2021-06-24 18:08:55
阅读次数:
0
""" 1.1交换 已知 a的值为”hello”,b的值为”world”,如何交换a和b的值? 得到a的值为”world”,b的值为”hello” """ a = "hello" b = "world" a,b = b,a print(a) print(b) """ 1.2回文 回文的定义:”回文” ...
分类:
编程语言 时间:
2021-06-24 18:06:51
阅读次数:
0
COCO 的jeson 文件: "images": [{"file_name": "811000171.jpg", "height": 720, "width": 1280, "id": 811000171}, {"file_name": "811000131.jpg", "height": 720 ...
分类:
其他好文 时间:
2021-06-24 18:06:36
阅读次数:
0