11 2023 档案
摘要:Bat 脚本 1. 运行 .cmd文件【/c】 start cmd /c D:\nacos\nacos-server-1.1.3\nacos\bin\startup.cmd 2. 调用另外一个文件夹内的 .bat文件【/d call】 cd /d D:\sentinel call sentinel.
阅读全文
摘要:public class T1 { public static void main(String[] args) { ZonedDateTime now = ZonedDateTime.now(); System.out.println(now); } }
阅读全文
摘要:正则处理【B站要求秒和毫秒间要求是逗号,而自动生成的为实点.】 public class fsdafsdfe { public static void main(String[] args) { String ss = "1\n" + "00:00:00.320 --> 00:00:06.627\n
阅读全文
摘要:如果 select 语句同时包含有 group by, having,limit,order by 那么它们的顺序是: where(限制属性) group by(分组) having(筛选) order by(排序) limit(分页)【限制记录条数】 LeetCode 刷题 577. 员工奖金【左
阅读全文
摘要:Mysql中如何解决You can't specify target table '表名' for update in FROM clause报错 为什么会出现这个错误呢?这是因为在MySQL使用时,在同一条SQL语句中,不允许先SELECT出同一个表的某些值,再对该表进行UPDATE操作。 解决方
阅读全文
摘要:+ 的优先级 高于 << + 的优先级 高于 <<
阅读全文
摘要:字典树【Trie】 一种能够快速插入和查询字符串的多叉树结构 节点的编号各不相同,根节点编号为0,其它节点用来标识路径,还可以标记单词插入的次数。边标识字符 Tier维护字符串的集合,支持2种操作: 向集合中拆入一个字符串, void insert(char c) 向集合中查询一个字符串,int q
阅读全文
摘要:按列取出二维数组 int[] arr2 = new int[row]; for (int i = 0; i < col; i++) { // 列数 for (int j = 0; j < row; j++) { arr2[j] = arr[j][i]; } }
阅读全文