python unintest单元测试框架提供了一整套内置的断言方法。 1. 如果断言失败,则抛出一个AssertionError,并标识该测试为失败状态。 2. 如果成功,则标识该测试为成功状态。 但存在一个缺点,测试用例中含有多个断言时,一个断言失败,抛出异常,后续断言不再继续执行,也就无从知道 ...
分类:
其他好文 时间:
2021-04-22 15:35:52
阅读次数:
0
Given an m x n matrix, return all elements of the matrix in spiral order. Example 1: Input: matrix = [[1,2,3],[4,5,6],[7,8,9]] Output: [1,2,3,6,9,8,7, ...
分类:
其他好文 时间:
2021-04-22 15:34:12
阅读次数:
0
#include <stdio.h> #include <iostream> using namespace std; class abc { private: int a; int b; }; int main() { cout << "Hello, World!" << endl; cout < ...
分类:
其他好文 时间:
2021-04-22 15:25:05
阅读次数:
0
一、问题报错 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint xxxx and the end yyyy. 因MySQL上存储的应用数据并没有多大,mysql下多张 ...
分类:
数据库 时间:
2021-04-22 15:22:00
阅读次数:
0
【事件】 bike trip Describe an unforgettable bike trip you had You should say: When and where you had the trip Who you went with Why you had the trip by b ...
分类:
其他好文 时间:
2021-04-21 12:57:26
阅读次数:
0
根据完全二叉树的性质(编号为$u$的节点的左儿子编号为$u2$,右儿子编号为$u2+1$),并利用后序遍历进行递归建树。 $level[i]$存储编号为$i$的节点的值。 const int N=35; int post[N]; int level[N]; int n; int k; void df ...
分类:
其他好文 时间:
2021-04-21 12:54:57
阅读次数:
0
8.处理 Promise 抛出的异常 <script src="./Promise.js"></script> <script type="text/javascript"> let p = new Promise((resolve, reject) => { throw 'error'; }) p ...
分类:
其他好文 时间:
2021-04-21 12:20:24
阅读次数:
0
统计tomcat的access日志的ip次数,并按次数排序 awk '{sum[$1]++}END{for(i in sum) print i "\t" sum[i]}' localhost_access_log.* | sort -n -k2 统计某个接口的调用时间 awk '{if($7~/.* ...
分类:
数据库 时间:
2021-04-21 12:18:10
阅读次数:
0
from selenium.webdriver import Chrome, ActionChainsfrom selenium.webdriver import Chromefrom selenium.webdriver.common.keys import Keys#显示等待import req ...
分类:
其他好文 时间:
2021-04-21 11:51:03
阅读次数:
0
###三方框架 PromiseKit : https://github.com/mxcl/PromiseKit Bolts : https://github.com/BoltsFramework/Bolts-ObjC ###自定义demo: #import <Foundation/Foundatio ...
分类:
移动开发 时间:
2021-04-20 15:43:40
阅读次数:
0