在日常代码中,总是不能避开if-else,虽然它很好,可是需要至少三行代码,真的很丑,而且业务代码里,动辄十几个if-else,实在不方便代码阅读。所以我有一个不成熟的想法,在有限的业务范围内,用Dictionary<K,V> 代替。 首先写一个Dictionary<K,V>的扩展: /// <su ...
分类:
其他好文 时间:
2020-07-21 14:01:39
阅读次数:
52
升级系统,安装常用的rpm yum -y update yum -y install wget net-tools nfs-utils lrzsz gcc gcc-c++ make cmake\ libxml2-devel openssl-devel curl curl-devel unzip su ...
分类:
其他好文 时间:
2020-07-19 23:07:25
阅读次数:
97
1、编译 ./configure --prefix=/usr/local/nginx-1.8\ --with-http_stub_status_module\ (统计数据查看) --with-pcre=/opt/install/nginx/pcre-8.44\ (正则) --with-http_su ...
分类:
Web程序 时间:
2020-07-17 19:22:38
阅读次数:
72
1、编译 ./configure --prefix=/usr/local/nginx-1.8\ --with-http_stub_status_module\ (统计数据查看) --with-pcre=/opt/install/nginx/pcre-8.44\ (正则) --with-http_su ...
分类:
Web程序 时间:
2020-07-17 16:16:30
阅读次数:
71
一、系统相关 cat /etc/redhat-release 查看系统版本uname -a 查看系统位数su - hadoop 切换系统账户source /etc/profile 重装配置文件 二、防火墙 firewall-cmd --add-port=3306/tcp 开放3306端口 https ...
分类:
系统相关 时间:
2020-07-14 18:00:46
阅读次数:
79
Sublime插件安装和使用 插件安装的方式: 插件安装方式一:直接安装 下载插件安装包,然后把安装解压到packages目中,按成安装(菜单->首选项->浏览插件) 插件安装方法二:使用package control组件安装 Package control的介绍 Package contro是su ...
分类:
其他好文 时间:
2020-07-13 09:47:56
阅读次数:
61
#切换用户或以其他用户身份执行命令 su: 即 switch user,命令可以切换用户身份,并且以指定用户的身份执行命令 ##格式: su [options...] [-] [user [args...]] ##常见选项: -l --login su -l UserName 相当于 su - Us ...
分类:
系统相关 时间:
2020-07-12 22:24:42
阅读次数:
62
传送门:题目39 题目40 我觉得比较好的题解:https://leetcode-cn.com/problems/combination-sum/solution/hui-su-suan-fa-jian-zhi-python-dai-ma-java-dai-m-2/ 观察发现[2 2 3]、[2 3 ...
分类:
其他好文 时间:
2020-07-11 12:29:36
阅读次数:
68
一、@FindBy和@CacheLookup用法 代码实例 package page; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.su ...
分类:
数据库 时间:
2020-07-10 19:31:53
阅读次数:
344
待整理https://leetcode-cn.com/problems/kth-smallest-element-in-a-sorted-matrix/solution/you-xu-ju-zhen-zhong-di-kxiao-de-yuan-su-by-leetco/ ...
分类:
其他好文 时间:
2020-07-07 17:56:02
阅读次数:
62