pytest参数化与数据驱动实现—— 1. 使用@pytest.mark.parametrize进行参数化和数据驱动 import pytest @pytest.mark.parametrize("test_input, expected", [('3+5', 8), ('1+5', 6), ('3 ...
分类:
其他好文 时间:
2021-05-24 00:42:51
阅读次数:
0
{ "OrderCode": "012657700387", "ShipperCode": "HTKY", "PayType": 1, "ExpType": 1, "Cost": 1.0, "OtherCost": 1.0, "Sender": { "Company": "LV", "Name": ...
分类:
Web程序 时间:
2021-05-24 00:34:46
阅读次数:
0
docker pull nginx:latest docker run -d -p 2002:80 --name abcnginx nginx:latest docker exec -ti abcnginx /bin/bash 然后更新下 apt-get update apt-get install ...
分类:
Web程序 时间:
2021-05-24 00:17:39
阅读次数:
0
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cmath> #include <map> #define int long long using namespace std; const int N = 100 ...
分类:
其他好文 时间:
2021-05-24 00:04:21
阅读次数:
0
报错信息:Expected '$(student - name)' to be an inline constant of type java.lang.String in @org.springframework.beans.factory.annotation.Value 这样使用会报错,原因是 ...
分类:
其他好文 时间:
2021-05-24 00:03:03
阅读次数:
0
模块的概念 标准模块格式 # !/usr/bin/env python3 # -*- coding: utf-8 -*- 'a test module' __author__ = 'name' 安装第三方模块 pip:是python包管理工具。 安装第三方模块:使用包管理工具 pip pip的安装( ...
分类:
编程语言 时间:
2021-05-24 00:01:39
阅读次数:
0
文件读写 打开和关闭文件 一般并不使用此种方法打开和关闭文件,而是使用 with open(file_name,'r|w|a') as f: 打开文件 open():只有在使用python内置的open()函数打开一个文件,创建一个file对象后,相关的方法才可以调用它进行读写操作。 file ob ...
分类:
编程语言 时间:
2021-05-23 23:59:59
阅读次数:
0
新项目要用斑马打印机打标签, 之前做过一个是用FastReport 设计好标签模板,调用 FastReport的dll就能打印了. 可以查看这个 用BarTender Vs FastReport 打印二维码 比较 现在还没拿到打印机, 拿到之后,可以首先尝试FastReport是否可以用, 这样是最 ...
分类:
其他好文 时间:
2021-05-23 23:58:18
阅读次数:
0
6、面向对象编程 6.1、原型对象 javascript、java、c#。。。。面向对象;javascript有些区别! 类:模板 原型对象 对象:具体的实例 在JavaScript这个需要大家换一下思维方式! 原型: <script> var Student = { name: 'edgar', ...
分类:
编程语言 时间:
2021-05-23 23:46:53
阅读次数:
0
function fun(a,b){ console.log("a = "+ a); console.log("b = "+ b); alert(this); } var obj= { name:"obj", sayName:function(){ alert(this.name); } }; /* ...
分类:
移动开发 时间:
2021-05-23 23:39:03
阅读次数:
0