public class splitTest { public static void main(String[] args) { String a = "@123"; String b = "123@"; String c = "3@@@"; String[] aArr = a.split("@" ...
分类:
其他好文 时间:
2021-03-01 13:34:57
阅读次数:
0
std::map的实现 template <class Pair> struct Select1st_ { const typename Pair::first_type& operator()(const Pair& x) const { return x.first; } }; template ...
分类:
其他好文 时间:
2021-03-01 13:20:12
阅读次数:
0
优先级最高(), 算术运算符:+、-、*、/、&、++、-- 赋值运算符:= 关系运算符:>、<、>=、<=、==、!=instanceof 逻辑运算符:&&、||、! 位运算符:&、|、^、~、>>、<<、>>> 条件运算符:? : 案例如下 package operator; public cl ...
分类:
其他好文 时间:
2021-03-01 12:51:55
阅读次数:
0
结构变量的声明和初始化 #include <cstdio> int main() { struct { int age; int height; } x, y = {29, 180}; // 结构的成员在内存中按照声明的顺序存储 x.age = 30; x.height = 170; return ...
分类:
编程语言 时间:
2021-02-27 13:32:58
阅读次数:
0
//super关键字 //1、作为函数调用,调用父类的构造函数. //ES6中要求,在字类构造函数中,必须执行一个super函数 //super指向父类的原型不是父类class class A { constructor(x) { this.x = x } } class B extends A { ...
分类:
其他好文 时间:
2021-02-27 13:27:26
阅读次数:
0
计划任务 计划任务主要是做一些周期性的任务,目前主要的用途是定期备份数据 在linux下,有两个命令可以用来做计划任务而执行 at: 一次性定时任务计划执行 crontab: 每天定时计划任务执行 一次性调度执行 at 语法格式 at 示例 Ctrl+d 保存指令 # 查看进行中的任务 atq [r ...
分类:
其他好文 时间:
2021-02-27 13:03:57
阅读次数:
0
1.指定到人 @Override @Transactional(rollbackFor = Exception.class) // @GlobalTransactional public boolean startProcess(ProcessPurchaseOrder bean) { //是否启动 ...
分类:
其他好文 时间:
2021-02-26 13:05:55
阅读次数:
0
如何基于GitLab做代码评审 导引 大家知道,Gitlab是知名的开源代码管理工具,除了云端代码托管服务外,也可以下载社区版本进行本地搭建。因此大部分研发团队都搭建Gitlab进行代码管理。但其实,gitlab也是支持代码评审流程的。如果我们研发团队如果规模不大(例如10个人左右),完全可以基于g ...
分类:
其他好文 时间:
2021-02-25 12:17:15
阅读次数:
0
其实我们可以使用匿名内部类来完成之前的那些操作: 1 package com.hw.second0224; 2 public class MyRunnableTest { 3 public static void main(String[] args) { 4 Runnable r = new Ru ...
分类:
其他好文 时间:
2021-02-25 12:16:42
阅读次数:
0
我们来看看线程的join方法: 如果,没有join,代码如下,那么其运行效果如下: 1 package com.hw.thread0223; 2 3 public class ThreadDemo2 { 4 public static void main(String[] args) { 5 MyT ...
分类:
编程语言 时间:
2021-02-25 12:03:38
阅读次数:
0