- 博客(72)
- 收藏
- 关注
转载 Python+Requests接口测试教程:Fiddler抓包工具
转载地址:https://blog.youkuaiyun.com/qq4165498/article/details/77802642为什么要先学fiddler?学习接口测试必学http协议,如果直接先讲协议,我估计小伙伴们更懵,为了更好的理解协议,先从抓包开始。结合抓包工具讲http协议更容易学一些。1.1 抓firefox上https请求fiddler是一个很好的抓包工具,默认是抓htt...
2018-11-29 09:29:05
7082
原创 python 类的学习
#!/usr/bin/env python# -*- coding: utf-8 -*-import string# class gxd: #经典类class gxd(object): #新式类 多继承方式改变 def __init__(self,name,age,address,score): self.name = name ...
2018-11-13 14:51:35
567
原创 python 爬取所有页面的对应数据
一般来说不同页码最后page=或者p 等等,只需要转化一下后面对应的数值即可,或者从尾页对应URL找到最后一页,也就是总页数即可案例一:#!/usr/bin/env python# -*- coding: utf-8 -*-import pymysql # 导入 pymysqlimport reimport timeimport datetimeimport reque...
2018-11-06 14:45:37
4151
原创 python 模拟搜索应用并爬取应用图片
模拟搜索某个应用名,并爬取应用名和图片下载到本地也可以从excel表中数据来模拟#!/usr/bin/env python# -*- coding: utf-8 -*-import requestsfrom selenium import webdriverfrom selenium.webdriver.common.by import Byfrom time import ...
2018-11-06 14:19:25
426
原创 python selenium 模拟登陆
需要selenium包和chorme相应的插件模拟登陆百度账号(只是输入账号密码点击登陆)from selenium import webdriverfrom time import sleep#-*- coding:utf8 -*-from selenium import webdriverdriver = webdriver.Chrome()driver.maximize_...
2018-10-25 23:36:49
484
原创 python 100练习
1题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?count = 0for i in range(1,5) : for j in range (1,5) : for k in range(1,5) : if (i != j) and (i != k) and (j != k) : ...
2018-10-20 12:15:42
446
原创 python入门之函数学习
函数def 函数名(): 函数内容def() 调用函数 如果需要变量填入变量默认参数def info(name,age,course,country="CN") : #默认参数必须放最后 print(name,age,country,course)info("gxd",22,'python')info("bzx",22,'java','USA...
2018-09-04 17:02:47
220
原创 Python 入门之文件处理
file=文件位置 mode=查看方法,r只读 w只写 a添加 r+读写 w+写读 目前只接触了这几个1.查看文件全部读出f = open(file='C:/Users/Administrator/Desktop/123.txt',mode="r",encoding="utf-8")data = f.read()print(data)f.close()一行一...
2018-09-04 12:10:14
253
原创 Pycharm 一些小操作
1.激活,网上找的。基本能用在激活Jetbrains旗下任意产品的时候选择激活服务器填入以下地址便可成功激活http://idea.liyang.io2.更改主题: File ->Settings -> Editor -> Color Scheme -> Scheme -> Monokai修改字体: File ->Settings -&...
2018-09-02 21:20:33
244
原创 python 简易购物车
简单的购物车小程序1、启动程序后,输入用户名密码后,让用户输入工资,然后打印商品列表2、允许用户根据商品编号购买商品3、用户选择商品后,检测余额是否够,够就直接扣款,不够就提醒4、可随时退出,退出时,打印已购买商品和余额5、在用户使用过程中, 关键输出,如余额,商品已加入购物车等消息,需高亮显示#!/usr/bin/env python# -*- coding: u...
2018-07-31 14:55:06
534
原创 python 三级菜单
可依次选择进入各子菜单可从任意一层往回退到上一层可从任意一层退出程序所需新知识点:列表、字典自己想的,菜鸟版的#!/usr/bin/env python# -*- coding: utf-8 -*-menu = { '北京':{ '海淀':{ '五道口':{ 'soho':{}, ...
2018-07-31 14:04:51
690
原创 Python学习小笔记
1.Python创始人“龟叔 ” Guido van Rossum2.name=input("name:") name默认是str类型 可以强制类型转换 age=int(input("age:")) 此时age是int型 type()方法可以查询变量类型 bin(13) 二进制 oct(13) 八进制 hex (13) 十六进制3.格...
2018-07-27 16:15:22
243
原创 python3.7小白安装 好久不见
好久不见,终于找回密码hhhhhhhhh1.百度搜索python或者直接网址python.org进入python官网 2.找到Downloads点击你的操作系统,一般都是windows,点击3.点击之后出现根据自己需要选择版本,64位windows的话选择 windows x86-64 executable instaler点击下载,因为是国外网站浏览...
2018-07-25 13:02:21
6086
原创 Educational Codeforces Round 23 C. Really Big Numbers
C. Really Big Numberstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIvan likes to learn different things a
2017-06-16 18:14:47
496
原创 Educational Codeforces Round 23 B. Makes And The Product
B. Makes And The Producttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter returning from the army Make
2017-06-16 18:09:00
2538
原创 Educational Codeforces Round 23 A. Treasure Hunt
A. Treasure Hunttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputCaptain Bill the Hummingbird and his crew r
2017-06-16 09:13:33
1373
原创 记第一次codeforces比赛经历
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~凑字数~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 昨天晚上8点多有一个codeforces的比赛,codefoces曾经很仰望的一个平台,今天我就去试试水。 不得不说英语真的真
2017-06-08 08:11:37
8913
原创 Codeforces Round #418 (Div. 2) problem B. An express train to reveries
B. An express train to reveriestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSengoku still remembers the
2017-06-08 07:42:26
919
原创 Codeforces Round #418 (Div. 2) problem A. An abandoned sentiment from past
A. An abandoned sentiment from pasttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA few years ago, Hitagi
2017-06-08 07:31:11
1018
原创 2017上海金马五校程序设计竞赛 O:An Easy Problem
DescriptionZhu Ge is a very clever boy. One day, he discovered 2*n numbers. He wanted to divide them into n groups, each group contains 2 integers, and minimize the sum of the absolute val
2017-06-05 18:54:49
503
原创 2017年上海金马五校程序设计竞赛:Problem K : Treasure Map
Problem K : Treasure MapFrom: DHUOJ, 2017060311Submit (Out of Contest)Time Limit: 3 sDescriptionThere is a robot, its task is to bury treasures in order on a N × M gr
2017-06-04 21:20:59
522
原创 2017年上海金马五校程序设计竞赛:Problem I : Frog's Jumping
Problem I : Frog's JumpingFrom: DHUOJ, 2017060309Submit (Out of Contest)Time Limit: 1 sDescriptionThere are n lotus leaves floating like a ring on the lake, which are
2017-06-04 21:15:29
521
原创 2017年上海金马五校程序设计竞赛:Problem E : Find Palindrome
Problem E : Find PalindromeFrom: DHUOJ, 2017060305Submit (Out of Contest)Time Limit: 1 sDescriptionGiven a string S, which consists of lowercase characters, you need
2017-06-04 21:05:29
338
原创 2017年上海金马五校程序设计竞赛:Problem C : Count the Number
Problem C : Count the NumberFrom: DHUOJ, 2017060303Submit (Out of Contest)Time Limit: 3 sDescriptionGiven n numbers, your task is to insert '+' or '-' in front of eac
2017-06-04 20:56:35
698
原创 2017年上海金马五校程序设计竞赛:Problem B : Sailing
Problem B : SailingFrom: DHUOJ, 2017060302Submit (Out of Contest)Time Limit: 1 sDescriptionHandoku is sailing on a lake at the North Pole. The lake can be considered
2017-06-04 20:49:31
363
原创 2017年上海金马五校程序设计竞赛:Problem A : STEED Cards
Problem A : STEED CardsFrom: DHUOJ, 2017060301Submit (Out of Contest)OJ链接Time Limit: 1 sDescriptionCorn does not participate the STEED contest, but he is interest
2017-06-04 20:36:57
278
原创 linux一些基本的命令
zip -r 希望压缩后的文件名 文件夹的路径 压缩一个文件夹mv 文件名 移动的位置(路径) 移动一个文件到一个路径下
2017-05-31 20:15:41
270
原创 整理第十届河南省ACM省赛正解
问题A:谍报分析题目链接正解:#include#include#include#include#includeusing namespace std;struct Word{ char str[100]; int count;}word[1000];int N=0;int comp(Word w1,Word w2){ if(w1.count
2017-05-22 20:03:12
770
原创 Codeblocks使用说明
CodeBlocks简单的使用说明入门篇双击桌面上CodeBlocks图标,就能进入CodeBlocks集成环境,屏幕上就会出现CodeBlocks的主界面如下图在CodeBlocks主窗口的顶部是CodeBlocks的主菜单栏。其中包含15个菜单项:File(文件)、Edit(编辑)、View(查看)、Search(搜寻)、Project(项目)、Build(构建)、Debu
2017-05-18 19:21:59
146428
30
原创 算法竞赛常见一类一题(大部分)
从知乎上看到,感觉还有点用,就转过来了。飞机票Hash Table Problem - 5183ST Table Problem - 3183树状数组单点修改区间查询 Problem - 1754树状数组区间修改单点查询 Problem - 1608树状数组区间修改区间查询 Problem - 3468线段树单点修改区间查询 Problem -
2017-05-15 21:26:25
3033
原创 河南省第十届ACM大赛赛后感(菜鸟版)
总的来说今年ACM省赛的成绩并不是很理想吧,但最起码没有空手而归。 我们学校是周六早上就出发了,说实在的宾馆的质量非常好(可能是我住过的最好的了),宾馆到学校的距离也并不远。总体来说环境很好。 第一天热身赛的时候,题目非常非常水,基本和算法不沾边,快的人5分钟就做完走人了,我们做的不快,但是来之前讨论过要利用热身赛的时间来测试一下环境,看各种错误会出现什么样的报错。然而并咩有什么卵
2017-05-09 19:15:33
1187
2
原创 四处搜刮整理模板
1.筛法int prime[maxn]; bool is_prime[maxn];int sieve(int n){ int p = 0; for(int i = 0; i <= n; ++i) is_prime[i] = true; is_prime[0] = is_prime[1] = false; for (int i = 2; i
2017-05-04 21:17:25
328
原创 NYOJ 541
最强DE 战斗力时间限制:1000 ms | 内存限制:65535 KB难度:3描述春秋战国时期,赵国地大物博,资源非常丰富,人民安居乐业。但许多国家对它虎视眈眈,准备联合起来对赵国发起一场战争。显然,面对多个国家的部队去作战,赵国的兵力明显处于劣势。战斗力是决定战争成败的关键因素,一般来说,一支部队的战斗力与部队的兵力成正比。但当把一支部队分成若干个作战队伍时,这个部
2017-05-04 15:49:09
422
原创 NYOJ 309
BOBSLEDDING时间限制:1000 ms | 内存限制:65535 KB难度:3描述Dr.Kong has entered a bobsled competition because he hopes his hefty weight will give his an advantage over the L meter course
2017-05-03 21:35:32
301
原创 POJ 1789
Truck HistoryTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 27572 Accepted: 10717DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different ty
2017-05-02 19:37:44
228
原创 POJ 1276
这道题是一个多重背包的模板题,然后加上二分查找即可#include#include#includeusing namespace std;int dp[1000001];struct p{ int p;}ch[10001];int main(){ int n,m,c,p; while(scanf("%d",&n)!=EOF) {
2017-05-02 08:52:25
261
原创 HDU 1880
魔咒词典Time Limit: 8000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13779 Accepted Submission(s): 3335Problem Description哈利波特在魔法学校的必修课之一就是学习魔
2017-05-02 08:41:31
321
原创 HDU 1799
循环多少次?Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4758 Accepted Submission(s): 1827Problem Description 我们知道,在编程中,我们时常需要考
2017-05-01 20:57:35
280
原创 POJ 2313
SequenceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3885 Accepted: 1537DescriptionGiven a sequence with N integers A(1), A(2), ..., A(N), your tas
2017-05-01 19:27:21
377
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人