模块的概念 标准模块格式 # !/usr/bin/env python3 # -*- coding: utf-8 -*- 'a test module' __author__ = 'name' 安装第三方模块 pip:是python包管理工具。 安装第三方模块:使用包管理工具 pip pip的安装( ...
分类:
编程语言 时间:
2021-05-24 00:01:39
阅读次数:
0
一、整体目录: 二、文件夹作用: action: 用于封装调用 case: 用于编写测试用例 common:用于放置公共部分 configs:用于存放测试数据(比如域名、账号等) data:用于存放测试用例, otc_api:用于封装接口请求方式 mian.py:运行函数 pytest.ini: 三 ...
分类:
其他好文 时间:
2021-05-23 23:56:36
阅读次数:
0
1 for循环 2 import com.google.common.base.Function; 3 import com.google.common.collect.Maps; 4 5 import java.util.ArrayList; 6 import java.util.HashMap; ...
分类:
其他好文 时间:
2021-05-23 23:53:14
阅读次数:
0
public class Test { public static void main(String[] args) { // \u000A String s = "Hello World"; String s = "1212"; System.out.println(s); } } 错误:java ...
分类:
编程语言 时间:
2021-05-23 23:09:26
阅读次数:
0
在Go中函数也是一种变量,我们可以通过type来定义它,它的类型就是所有拥有相同的参数,相同的返回值的一种类型,函数当做值和类型在我们写一些通用接口的时候非常有用 通过下面这个例子我们可以看到testInt类型是一个函数类型, 然后两个filter函数的参数和返回值与testInt类型一样的 但是我 ...
分类:
编程语言 时间:
2021-05-23 22:56:31
阅读次数:
0
前言 go的测试用例一般分两种 单元测试:主要测试代码可运行正确行,相当于运行一遍编写代码 基准测试:主要是对性能的测试 gotest 的变量 test.short : 一个快速测试的标记,在测试用例中可以使用 testing.Short() 来绕开一些测试 test.outputdir : 输出目 ...
分类:
其他好文 时间:
2021-05-04 16:32:30
阅读次数:
0
CF-Predictor 这是一款在$Codeforces$比赛中可以实时算出你这场比赛的$rating$ $changes$的插件,非常实用。 下面是安装教程,我以$Google$ $Chrome$为示范。 感谢 @qinyihao 给予帮助 Step 1 我们要下载一个代理,就是这个,然后点击$ ...
分类:
其他好文 时间:
2021-05-04 16:07:43
阅读次数:
0
方法分组测试 1. 给@Test注解后面加groups参数,如 @Test(groups = "groupa") 2. 可以添加@BeforeGroups和@AfterGroups,来设置在某组方法执行之前/之后要做的事情,如 @BeforeGroups("groupa") 1 import org ...
分类:
其他好文 时间:
2021-05-04 15:52:39
阅读次数:
0
解包: d = {"username":"admin","password":"123456"}print(d.items())# [('username', 'admin'), ('password', '123456')]for k,v in d.items(): print(k,v)递归 #函 ...
分类:
编程语言 时间:
2021-05-04 15:37:45
阅读次数:
0
python中拆分字符串 1、 >>> test1 = "abxcdxefxfh" >>> test1 'abxcdxefxfh' >>> test1.split(sep = "x") ['ab', 'cd', 'ef', 'fh'] ...
分类:
编程语言 时间:
2021-05-04 15:23:41
阅读次数:
0