需求: 某软件的Log文件,其中的日期格式为'yyyy-mm-dd': ..... 2016-05-23 10:59:26 status upacked python3-pip.all 2016-05-23 10:59:26 status half-configured python3-all 20 ...
分类:
其他好文 时间:
2020-07-11 17:32:07
阅读次数:
45
###随机生成工具包 为供测试或者数据库模拟数据方便,想便利大家,只需引入此jar就可以mock数据 使用方式,引入一下依赖 <dependency> <groupId>io.github.wangsrgit119.random.util</groupId> <artifactId>suc-all- ...
分类:
移动开发 时间:
2020-07-11 17:25:26
阅读次数:
73
// 开启协程化,文件操作,sleep,Mysqli,PDO,streams等都变成异步IO Co::set(['hook_flags'=> SWOOLE_HOOK_ALL]); $s = microtime(true); // 创建协程容器 Co\run(function() { // 开启100 ...
分类:
其他好文 时间:
2020-07-11 17:23:32
阅读次数:
79
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
【注:本文转自 https://blog.csdn.net/u012410733/article/details/63684663】 【注意】:Oracle数据库支持full join,mysql是不支持full join的,但仍然可以同过左外连接+ union+右外连接实现 初始化SQL语句: / ...
分类:
数据库 时间:
2020-07-10 13:33:02
阅读次数:
85