1.自动化测试里面的测试用例设计的一些方法 解耦、可以独立运行、需要灵活切换 设计思路: 脚本功能分析(分步骤)和模块化分层(拆分为多模块) project login_order.py #登录下单测试用例 category.py #菜单分类测试用例 all_test.py #主入口 login_o ...
分类:
编程语言 时间:
2020-07-11 16:58:14
阅读次数:
91
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th ...
分类:
其他好文 时间:
2020-07-11 12:41:31
阅读次数:
54
https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/ 给一个字符串,如果出现两个相邻的相同字符,就将它们一同删去,重复这个操作直到不能继续做为止,返回最后的字符串 一开始我是用类似递归的方式重复对这个字符串进行 ...
分类:
其他好文 时间:
2020-07-11 10:06:32
阅读次数:
59
1.查询表空间信息 select tablespace_name,file_name,bytes/1024/1024 mb from dba_temp_files union all select tablespace_name,file_name,bytes/1024/1024 mb from d ...
分类:
数据库 时间:
2020-07-11 09:46:16
阅读次数:
64
新建一个空文件夹,记住路径(这里右键pycharm打开更省事); 打开pycharm,点击file、点击settings; 选中project interpreter 点击下拉,点击show all; 点击右上角加号,选择virtualenv environment 选择new environmen ...
分类:
其他好文 时间:
2020-07-10 23:51:22
阅读次数:
82
只介绍两个与Perl兼容的正则表达式函数: 1.preg_match_all 函数执行正则表达式匹配与搜索; 2.preg_replace 函数执行正则表达式匹配与替换。 示例代码: <?php // 正则表达式,匹配日期格式 $pattern = "/(\d{2})\/(\d{2})\/(\d{4 ...
分类:
Web程序 时间:
2020-07-10 19:26:01
阅读次数:
94
一、Log4j2日志框架Spring5 已经移除 Log4jConfigListener,官方建议使用 Log4j21)引入 jar 包 2)创建 log4j2.xml 配置文件 FATAL > ERROR > WARN > INFO > DEBUG > TRACE > ALL --> ... ...
分类:
编程语言 时间:
2020-07-10 11:18:27
阅读次数:
58
Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar ...
分类:
其他好文 时间:
2020-07-10 10:07:44
阅读次数:
60
import glob for i in glob.glob(r'C:\Desktop\**',recursive=True): print(i) """ re:?*【0-9】正则, recursive:开启递归return:all_path """ ...
分类:
编程语言 时间:
2020-07-10 10:05:54
阅读次数:
86
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2020-07-10 09:59:09
阅读次数:
61