摘要: 请求参数信息: 阅读全文
posted @ 2021-06-02 17:33 简单的回忆哈 阅读(180) 评论(0) 推荐(0) 编辑
摘要: while True: id = input('请输入ID(如1001):') if not id: break开始不明白 if not id是什么用法,我输入什么都一直循环,后面发现一个帖子,说 在python中None,False,空字符串,空列表,空字典,空元组都相当于False,X是他们,n 阅读全文
posted @ 2021-04-01 10:39 简单的回忆哈 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一、在浏览器中将 Headers复制到pycharm的py文件中 Host: beacon.tingyun.comConnection: keep-aliveContent-Length: 2988Sec-Fetch-Dest: emptyUser-Agent: Mozilla/5.0 (Windo 阅读全文
posted @ 2020-04-27 14:45 简单的回忆哈 阅读(6319) 评论(0) 推荐(1) 编辑
摘要: pip config set global.index-url 源链接例:pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ 换回默认源 pip config unset global.index-url 阅读全文
posted @ 2020-03-19 12:10 简单的回忆哈 阅读(581) 评论(0) 推荐(0) 编辑
摘要: Jmeter—3 http请求—content-type与参数 收藏来自:https://www.cnblogs.com/dinghanhua/p/5646435.html#undefined 本文讲三种content-type以及在Jmeter中对应的参数输入方式 第一部分:目前工作中涉及到的co 阅读全文
posted @ 2018-07-12 16:27 简单的回忆哈 阅读(226) 评论(0) 推荐(0) 编辑
摘要: from locust import HttpLocust, TaskSet, taskimport pymysqlimport randomclass UserBehavior(TaskSet): def on_start(self): db = pymysql.connect("ip地址", " 阅读全文
posted @ 2018-07-06 09:43 简单的回忆哈 阅读(336) 评论(0) 推荐(0) 编辑
摘要: db=pymysql.connect("ip地址","用户名","密码","数据库")cursor=db.cursor()cursor.execute("select * from zj_class limit 5")data=cursor.fetchall()for i in range(5): 阅读全文
posted @ 2018-07-06 09:39 简单的回忆哈 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 读excel 1、导入模块 import xlrd 2、打开Excel文件读取数据 data = xlrd.open_workbook('excel.xls') 3、获取一个工作表 ① table = data.sheets()[0] #通过索引顺序获取② table = data.sheet_by 阅读全文
posted @ 2016-11-03 11:21 简单的回忆哈 阅读(1588) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-03 10:13 简单的回忆哈 阅读(7) 评论(0) 推荐(0) 编辑
摘要: r+就是以可读写方式打开文件,文件必须存在w+ 打开可读写文件,若文件存在则文件长度清为零,即该文件内容会消失。若文件不存在则建立该文件。 将数据写入文件后需要先关闭,然后再读出来 阅读全文
posted @ 2016-07-27 11:07 简单的回忆哈 阅读(903) 评论(0) 推荐(0) 编辑