#模式匹配 TODO - 模式匹配 - 匹配规则 1.类似于java中switch 2.当数据满足某一个分支时,执行完毕后,就直接跳出 3.case _ 分支类似于default语言, 分支匹配其实就是顺序匹配 4.如果数据没有匹配任何规则,会发生错误 模式匹配语法中,采用match关键字声明,每个 ...
分类:
其他好文 时间:
2021-06-02 10:38:15
阅读次数:
0
You have n boxes. You are given a binary string boxes of length n, where boxes[i] is '0' if the ith box is empty, and '1' if it contains one ball. In ...
分类:
其他好文 时间:
2021-06-02 10:37:12
阅读次数:
0
import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import junit.framework.TestCase; public class AntPathMatc ...
分类:
编程语言 时间:
2021-06-02 10:29:46
阅读次数:
0
//判断pc和手机 browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mo ...
分类:
移动开发 时间:
2021-05-25 18:31:07
阅读次数:
0
mysql相关 1,存储引擎 2,最左原则于命中规则 index(a,b,c) where a=3 只使用了a where a=3 and b=5 使用了a,b where a=3 and b=5 and c=4 使用了a,b,c where b=3 or where c=4 没有使用索引 wher ...
分类:
其他好文 时间:
2021-05-25 18:02:53
阅读次数:
0
Mockito 使用 doThrow 让方法抛出异常 如果一个对象的方法的返回值是 void,那么不能用 when .. thenThrow 让该方法抛出异常 如果没有返回值, 下面这种写法是错误的: import org.junit.Test; import org.mockito.Mock; i ...
分类:
其他好文 时间:
2021-05-25 17:50:29
阅读次数:
0
记住重要的一点是:hql不操作数据库,他操作的是类对象。 这里有两张表 User(id,name) 对应User类(int id,String name) Score(id,math,user_id),user_id为外键,对应User表中的id 对应Score类(int id,int math,U ...
分类:
Web程序 时间:
2021-05-24 16:52:24
阅读次数:
0
批量删除 sleep 进程状态的连接数解决方法。 直接在MySQL命令控制台操作: mysql> show processlist; mysql> SELECT concat('KILL ',id,';') FROM information_schema.processlist WHERE user ...
分类:
数据库 时间:
2021-05-24 16:34:09
阅读次数:
0
dedecms删除id>N且id<M的文章内容的sql命令,通过织梦后台的sql命令执行: //dedecms删除文章的sql命令 https://www.360muye.cn/DELETE FROM dede_addonarticle WHERE aid >N and aid<M; DELETE ...
分类:
其他好文 时间:
2021-05-24 16:17:32
阅读次数:
0
1.show variables like 'lower%' 2.在my.cnf中的[mysqld]后面添加lower_case_table_names=1 3.重启mysql service mysqld restart ...
分类:
数据库 时间:
2021-05-24 16:02:50
阅读次数:
0