摘要: 一、基础内容 log是python自带的一个日志模块,主要作用有: 1)代替print 阅读全文
posted @ 2022-06-21 19:10 宣意 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 一、安装jdk 备注:安装完成后,查询jdk的版本信息 二、安装Jmeter 2.1 下载地址:https://jmeter.apache.org/download_jmeter.cgi (下载最新版即可) 2.2 安装:在对应的目录解压即可 2.3 Jmeter版本如何切换成中文 修改文件:D:\ 阅读全文
posted @ 2022-06-21 17:31 宣意 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 一、字符串赋值 str_01 = "hello worD!!好" str_02 = "**@@@我来自中国,中国是个拥有5000年文明的国家@@*****" 二、字段索引取值 左边 0开始;右边开始 -1开始 print(str_01[0]) print(str_01[4]) print(str_0 阅读全文
posted @ 2022-06-21 17:09 宣意 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 一、数据库的增删改查 查询语句 select 查询内容(*代表任意) from 表名 where 查询条件; 更新数据 update 表名 set 列1=值1,列2=值2... (where 条件) 增加数据 insert into 表明 values(...) \ insert into 表名(列 阅读全文
posted @ 2021-02-02 13:33 宣意 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1、常用的接口协议:http、https、rpc、dubbo 2、接口的请求方式:get、post、put、delete、head、trace、opions等,但大都以get和post为主。 3、get和post的区别: 传送方式:get是url传送,post是报文传送,post相对隐私安全。 传送 阅读全文
posted @ 2021-01-29 09:21 宣意 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 一、字符串 1.2 字符串取值 s1 = "Hello,world!"#字符串取值 Hello,world!print("s1[:]的结果为:",s1[:])#字符串取值 取任一一个字符 Hprint("s1[0]的结果为:",s1[0])#字符串取值 ello,区间段取值包前不包后print("s 阅读全文
posted @ 2021-01-22 13:36 宣意 阅读(55) 评论(0) 推荐(0) 编辑
摘要: XXXXXXXXXXXXXX 阅读全文
posted @ 2021-01-22 11:05 宣意 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 一、unittest主要内容 主要核心部分:test case, test suite, test runner, test fixture 二、实例 my_class.py文件如下: class Father: def add_Two(self,a,b): print("******加法测试*** 阅读全文
posted @ 2021-01-22 10:06 宣意 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 一、安装python2.7环境,python --version查询python安装的版本 二、setuptools安装 阅读全文
posted @ 2020-12-28 14:56 宣意 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 一、web自动化元素定位的方式有8种。 腾讯课堂 1.1 id定位: 1.2 class定位: 1.3 classname定位 1.4 tag_name 1.5 阅读全文
posted @ 2020-12-28 14:54 宣意 阅读(48) 评论(0) 推荐(0) 编辑