function toAge($idCard){ if(empty($idCard)) return ''; //获取当前年份; $now_year = substr(date('Y-m-d'),0,4); //获取当前年份月份; $now_month = substr(date('m'),0,1) ...
分类:
其他好文 时间:
2020-08-05 18:12:07
阅读次数:
108
There are n cities connected by m flights. Each flight starts from city u and arrives at v with a price w. Now given all the cities and flights, toget ...
分类:
其他好文 时间:
2020-08-05 10:29:42
阅读次数:
73
private void UpgradeFont(object o) { if (CheckUpdate()) { dt = DateTime.Now; if (string.IsNullOrEmpty(FilePath) || !File.Exists(FilePath)) { ShowTip(" ...
分类:
其他好文 时间:
2020-08-01 21:21:41
阅读次数:
77
一需求分析:excel做公司内部资产记录如下:--但这样不方便 资产编号, ip, 主机名, 使用者, os, mem, cpu, 上架时间, 过保时间 所以开发web版,可以主机进行增,删,改,查 1.添加:方法如下 (1)人手工录入: ssh ip hostname cat /proc/cpui ...
分类:
其他好文 时间:
2020-07-30 01:47:37
阅读次数:
123
//C#计算两个时间年份月份差 DateTime dt1 = Convert.ToDateTime("2008-8-8"); DateTime dt2 = System.DateTime.Now; int Year = dt2.Year - dt1.Year; int Month = (dt2.Ye ...
Abstract 目前有很多方法来提升CNN的精度。有些方法或者特征只适用于特定的模型或者特定的问题或者小规模的数据集;但是有些方法比如 batch-normalization和residual-connections适用于大多数模型、任务和数据集。我们假定这些通用的特征或者方法包括 Weighte ...
分类:
其他好文 时间:
2020-07-27 15:41:14
阅读次数:
86
环境:CentOS 8 主服务器:10.0.0.8 从服务器:10.0.0.28 访问测试主机:10.0.0.6 一、安装DNS服务器软件 bind dnf install bind bind-utils -y ; systemctl enable --now named 二、修改主服务器 bind ...
分类:
其他好文 时间:
2020-07-27 13:38:09
阅读次数:
65
[root@centos7 nginx]# cat nginx.conf worker_processes 2; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type applic ...
分类:
其他好文 时间:
2020-07-26 01:19:27
阅读次数:
70
linux 命令可以联合使用 sync -- 同步备份数据 shutdown -- 关机 shutdown -h 10 -- 10分钟后关机 shutdown -r now -- 马上重启 shutdown -r 10 -- 10分钟后重启 reboot -- 重启 halt -- 关闭系统 == ...
分类:
系统相关 时间:
2020-07-25 23:37:42
阅读次数:
94
在Django中如何使用Redis 通用方式 在utils下建立redis_pool.py文件 # 单例模式 import redis POOL = redis.ConnectionPool(host="127.0.0.1",port=6379,max_connections=1000) 在视图函数 ...
分类:
其他好文 时间:
2020-07-25 11:45:38
阅读次数:
91