Coding Practice | 编程实践 基础篇 Clean Code 《代码整洁之道》Pragmatic Unit Testing 《单元测试之道》The Productive Programmer 《卓有成效的程序员》Test-Driven Development By Example 《测 ...
分类:
其他好文 时间:
2021-03-09 13:46:28
阅读次数:
0
代码例子如下 public class Father{ private int i = test(); private static int j = method(); static{ System.out.print("(1)"); } Father(){ System.out.print("(2 ...
分类:
其他好文 时间:
2021-03-09 13:44:24
阅读次数:
0
犯了一个低级错误 将测试用例写在COMMON目录里,导致无法用pytest执行测试,代码执行了也 没有日志打印 回头想想 pytest用例 先找的是 包名为 test开头的 然后执行test的用例模块 所以需要用test关键字命名包、模块、以及用例名称!!!!! ...
分类:
其他好文 时间:
2021-03-09 13:24:31
阅读次数:
0
创建线程的三种方式 1.继承Thread类 2.实现Runnable接口 3.实现Callable接口 继承Thread类 public Test extends Thread{ public void run(){ ... }//必须重写Thread类的Run方法 ... public stati ...
分类:
编程语言 时间:
2021-03-09 13:00:41
阅读次数:
0
第一种 类似于python的re.search("\d+","123") import java.io.*; import java.util.*; import java.util.regex.*; public class test { public static void readFile() ...
分类:
编程语言 时间:
2021-03-08 14:20:53
阅读次数:
0
1.union 和 union all 前者可以去重 select sex,address from test where dt='20210218' union all select sex,address from test where dt='20210218'; + + +--+ | sex ...
分类:
其他好文 时间:
2021-03-08 14:17:52
阅读次数:
0
Java的可变参数 public class Demo16 { public static void main(String[] args) { Demo16 demo16 = new Demo16();//调用与实例变量调用一样 //因为test没有static所以不能直接调用 demo16.te ...
分类:
编程语言 时间:
2021-03-08 13:37:56
阅读次数:
0
作用域 def test1(): print("in the test1")def test(): print("in the test") return test1 》test1 是函数test1的IP地址s = test() >运作test()结果是 in the test ,然后返回test1 ...
分类:
其他好文 时间:
2021-03-08 13:36:19
阅读次数:
0
title: stm32cubemx+clion环境搭建 date: 2021-01-23 13:32:05 tags: 环境搭建 cover: https://s3.ax1x.com/2021/01/23/s7unQx.png 为什么搭建 需要找到一个keil的替代品用来编译STM32代码。 环境 ...
分类:
其他好文 时间:
2021-03-06 15:06:50
阅读次数:
0
1、引用pom文件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <group ...
分类:
编程语言 时间:
2021-03-06 14:34:47
阅读次数:
0