会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
2023-1-6
博客园
首页
新随笔
联系
订阅
管理
2023年4月10日
第3章 requests库
摘要: vscode 安装之后启动,需要安装2个扩展:Python和Chinese语言包 安装requests库 pip install requests
阅读全文
posted @ 2023-04-10 17:59 昵称不重要!
阅读(8)
评论(0)
推荐(0)
2023年4月5日
第2章 fiddler的运用
摘要: 抓取手机接口 fiddler端设置 1、配置fiddler允许监听到https。 tools-options-https 2、配置fiddler允许远程连接 tools-options-connections 手机端设置 1、手机和电脑处于同一网络 2、手机打开wifi已连接的网络,选择代理-手动,
阅读全文
posted @ 2023-04-05 21:18 昵称不重要!
阅读(41)
评论(0)
推荐(0)
2023年3月31日
第1章
摘要: 1、接口基础 2、requests库的使用 3、flask如何开发接口 4、mock在接口测试中的运用 5、unittest与接口测试结合 6、设计开发测试接口框架
阅读全文
posted @ 2023-03-31 17:58 昵称不重要!
阅读(20)
评论(0)
推荐(0)
2023年2月9日
Python-正则表达式
摘要: import re re.match #从开始位置开始匹配,如果开头没有则无 re.search #搜索整个字符串 re.findall #搜索整个字符串,返回一个list
阅读全文
posted @ 2023-02-09 10:32 昵称不重要!
阅读(9)
评论(0)
推荐(0)
2023年2月8日
Python-函数
摘要: 内建函数 help() help(list.append) #显示list的append方法的帮助 input() name=input('please enter your name:') #读取输入,将读取到的数据赋值给指定变量 range() #生成一个列表 dir() #查看对象内所有属性及
阅读全文
posted @ 2023-02-08 16:04 昵称不重要!
阅读(8)
评论(0)
推荐(0)
unittest
摘要: import unittestclass TestLegion(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_createlegion(self): self.assertEqual(2,1)
阅读全文
posted @ 2023-02-08 15:43 昵称不重要!
阅读(20)
评论(0)
推荐(0)
Python-库
摘要: import math #导入math模块 math.floor() #调用math模块中的floor()函数 from math import floor #导入math模块中的floor函数方法 floor() #调用floor()函数
阅读全文
posted @ 2023-02-08 15:24 昵称不重要!
阅读(22)
评论(0)
推荐(0)
Python-异常
摘要: try: x = int(input('Enter the first number: ')) y = int(input('Enter the second number: ')) print(x/y)except ZeroDivisionError: print("输入的数字不能为0")
阅读全文
posted @ 2023-02-08 15:12 昵称不重要!
阅读(18)
评论(0)
推荐(0)
Python-类
摘要: class CocaCola: formula = ['caffeine','sugar','water','soda'] #类的属性coke_for_me = CocaCola() #类的实例化coke_for_you = CocaCola() #类的实例化print(CocaCola.formu
阅读全文
posted @ 2023-02-08 15:02 昵称不重要!
阅读(24)
评论(0)
推荐(0)
Python-循环与判断
摘要: def account_login(): password = input('Password:') if password == '12345': print('Login success!') else: print('Wrong password or invalid input!') acc
阅读全文
posted @ 2023-02-08 14:12 昵称不重要!
阅读(19)
评论(0)
推荐(0)
下一页
公告