摘要: postman版本:Version 9.3.1 (9.3.1) 1、按照下图创建一个集合 2、在上步创建的集合中add a request,需要参数化的参数用{{自定义参数}} 3、设置好后查看参数是否设置成功 4、自定义的参数设置为环境变量 5、collection右键,选择run collect 阅读全文
posted @ 2021-12-22 11:08 _苏小七 阅读(530) 评论(0) 推荐(0)
摘要: 1、appnium中webdriver的滑屏方法 def swipe(self: T, start_x: int, start_y: int, end_x: int, end_y: int, duration: int = 0) -> T: """Swipe from one point to an 阅读全文
posted @ 2021-09-13 09:24 _苏小七 阅读(79) 评论(0) 推荐(0)
摘要: 废话少叙,直接上code: 首先,不得不提醒大家一个容易被忽视或者搞混的问题——一般的,0.5这种末尾是5的小数,四舍五入取整应进位。这个进位的意思是:-0.5 → -1;0.5 → 1.即正负情况不同,都向着远离0,使得绝对值更大的方向进位 1、向上取整:math.ceil() import ma 阅读全文
posted @ 2021-09-10 09:53 _苏小七 阅读(6497) 评论(0) 推荐(0)
摘要: 题目:接受一个只包含小写字母的字符串,然后输出该字符串反转后的字符串。(字符串长度不超过1000) 方法1、利用字符串的切片、逆序功能 str = input() print(str.lower()[::-1]) 方法2、写一个算法实现 def reverse(string): # string.s 阅读全文
posted @ 2021-09-07 12:30 _苏小七 阅读(153) 评论(0) 推荐(0)
摘要: 本文列出python的内建函数,具体各函数使用方法参照:https://www.w3school.com.cn/python/python_ref_functions.asp # iterable 可迭代对象(列表、元组、字典) # object 对象,比如字符串、列表、元组、字典等等。 abs() 阅读全文
posted @ 2021-09-06 08:32 _苏小七 阅读(102) 评论(0) 推荐(0)
摘要: Prometheus+Grafana监控安装及使用:https://blog.csdn.net/qq_43417559/article/details/109012296 监控体系搭建(开箱即用):node_expoter + promethous + grafana:https://blog.cs 阅读全文
posted @ 2021-09-02 15:43 _苏小七 阅读(61) 评论(0) 推荐(0)
摘要: DROP TABLE IF EXISTS emp; CREATE TABLE emp (idint(11) NOT NULL COMMENT '员工编号',namevarchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 阅读全文
posted @ 2021-08-31 19:52 _苏小七 阅读(27) 评论(0) 推荐(0)
摘要: # 1、写一个算法判断一个英文单词的所有字母是否相同(不区分大小写) 备注:用python 方法1:运用set()方法的去重规则对单词去重后,判断去重前后长度是否相等 word = 'ability' print(word.lower()) if len(set(word.lower()))== l 阅读全文
posted @ 2021-08-28 14:13 _苏小七 阅读(38) 评论(0) 推荐(0)