import sys import time def get_terminal_size(): """Get (width, height) of the current terminal.""" try: import fcntl, termios, struct # fcntl module o ...
分类:
编程语言 时间:
2020-06-02 20:35:52
阅读次数:
82
1. 引入laydata插件 下载 https://blog-static.cnblogs.com/files/zhangning187/laydate.js laydate.js 替换laydate.js,就可以直接使用自定义快捷选中了 2.自定义控件选取值 1 laydate.render({ ...
分类:
其他好文 时间:
2020-06-02 19:20:45
阅读次数:
446
1 . awk 查看文件大小 比如 ls -alh |awk /TD/ | awk '{print $5}' ls -alh 返回文件详情列表 awk /TD/ 返回有 TD 字符的那一行 awk '{print $5}' 返回这一行的 ls -alh命令的第5列 , 也就是文件大 2. 获取命令结 ...
分类:
系统相关 时间:
2020-06-02 19:07:06
阅读次数:
73
one more time one more chance. 一歩重头学前端, css入门。 学习一些 CSS 文本控制的属性,防止做傻事。请大家对照下面列表检验下: 会的、不会的、似懂非懂的。笔者是一个也不会。 white-space text-overflow: ellipsis; word-b ...
分类:
Web程序 时间:
2020-06-02 18:52:09
阅读次数:
126
Idea 添加注释:类注释、方法注释类注释方法注释类注释File–Setting–Editor–File and Code Templates–Class:注释模板: /** * *@description: *@author: Andy *@time: ${DATE} ${TIME} * */ 操 ...
分类:
其他好文 时间:
2020-06-02 18:49:12
阅读次数:
104
CronTrigger CronTriggers往往比SimpleTrigger更有用,如果您需要基于日历的概念,而非SimpleTrigger完全指定的时间间隔,复发的发射工作的时间表。CronTrigger,你可以指定触发的时间表如“每星期五中午”,或“每个工作日9:30时”,甚至“每5分钟一班 ...
分类:
其他好文 时间:
2020-06-02 18:38:06
阅读次数:
53
一、一般java应用cpu过高基本上是因为 1.程序计算比较密集2.程序死循环3.程序逻请求堵塞4.IO读写太高 二、分析步骤 1. 找到被压服务的进程id(top -d 1) 2. ps -mp pid -o THREAD,tid,time 查看该进程的线程情况,找到耗时最多的线程id,转为16进 ...
分类:
其他好文 时间:
2020-06-02 14:46:13
阅读次数:
59
1.请求端 def home(request): """ 首页 """ # return render(request, 'home_application/index_home.html') bk_time = str(int(time.time())) bk_data = md5((bk_tim ...
分类:
其他好文 时间:
2020-06-02 13:06:05
阅读次数:
144
Python time time()方法 描述 Python time time() 返回当前时间的时间戳。 语法 time()方法语法: time.time() 参数 NA。 返回值 返回当前时间的时间戳(1970纪元后经过的浮点秒数)。 实例 以下实例展示了 time() 函数的使用方法: #! ...
分类:
编程语言 时间:
2020-06-02 11:01:32
阅读次数:
73
业务背景 统计各机型最近7天bug数量来支撑一张图表: sql需要查询最近七天数据并按每天和机型进行分组 思路 1. 查询最近7天的数据 select * from table where DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(column_time ...
分类:
数据库 时间:
2020-06-02 10:57:49
阅读次数:
196