脚本示例: @echo off set hour=%time:~0,2% if "%time:~0,1%"==" " set hour=0%time:~1,1% set now=%Date:~0,4%%Date:~5,2%%Date:~8,2%%hour%%Time:~3,2%%Time:~6,2% ...
分类:
数据库 时间:
2020-05-19 12:24:01
阅读次数:
66
C and C++ allow various types of operators. By now, you should be familiar with the basic binary operators +, -, *, / and the boolean operators <, >, ...
分类:
其他好文 时间:
2020-05-19 12:14:52
阅读次数:
62
死磕nginx系列--使用nginx做cache服务 配置文件 nginx.conf 主配置文件 worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type appli ...
分类:
系统相关 时间:
2020-05-18 18:19:55
阅读次数:
57
前期准备 准备好srt字幕文件 格式例如: 100:00:04,990 --> 00:00:07,759for a long time now I've been wanting to 200:00:07,759 --> 00:00:11,690shoot an episode where I di ...
分类:
编程语言 时间:
2020-05-18 16:44:54
阅读次数:
113
常用模块 什么是模块 ? 在计算机程序的开发过程中,随着程序代码越写越多,在一个文件里代码会越来越长,越来越不容易维护。 为了编写可维护的代码,我们把很多的函数分组,分别放到不同的文件里,这样每个文件包含的代码就相对较少了,很多编程语言都采用了这种组织代码的方式。在Python中,一个.py文件就可 ...
分类:
其他好文 时间:
2020-05-18 14:18:06
阅读次数:
53
Mysql常用函数的汇总,可看下面系列文章 https://www.cnblogs.com/poloyy/category/1765164.html sysdate 的作用 和 now 函数作用大同小异 以字符串或数字形式使用该函数, 以 'YYYY-MM-DD hh:mm:ss' 或 YYYYMM ...
分类:
数据库 时间:
2020-05-16 20:54:47
阅读次数:
167
数据库配置文件优化 硬件:内存32G innodb_file_per_table = 1 # 打开独立表空间 max_connections = 8000 # MySQL 服务所允许的同时会话数的上限,经常出现Too Many Connections的错误提示,则需要增大此值 back_log = ...
分类:
数据库 时间:
2020-05-16 19:08:10
阅读次数:
71
Mysql常用函数的汇总,可看下面系列文章 https://www.cnblogs.com/poloyy/category/1765164.html now 的作用 以字符串或数字形式使用该函数, 以 'YYYY-MM-DD hh:mm:ss' 或 YYYYMMDDhhmmss 格式返回当前日期和时 ...
分类:
数据库 时间:
2020-05-16 12:15:41
阅读次数:
72
``` /** * 将时间转换为几秒前、几分钟前、几小时前、几天前 * @param $in_time 需要转换的时间字符串 * @return string */ public static function timeTran($in_time) { $now_time = time(); $in... ...
分类:
Web程序 时间:
2020-05-15 20:32:22
阅读次数:
100
防抖(debounce):所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 节流(throttle):所谓节流,就是指连续触发事件但是在 n 秒中只执行一次函数。节流会稀释函数的执行频率。 防抖在于控制次数,节流在于控制频率! <!DO ...
分类:
其他好文 时间:
2020-05-15 16:14:18
阅读次数:
209