time模块下的perf_counter方法可用于精确计算程序运行的时间: 1 import time 2 3 start = time.perf_counter() 4 l = list(range(10000)) 5 end = time.perf_counter() 6 run_time= e ...
分类:
其他好文 时间:
2020-11-07 17:18:06
阅读次数:
24
1.执行tty命令,查看当前总线 当前总线为pts/4 2 添加telnet协议总线 telnet是pts/线 /etc/securetty 文件里增加pts/4就可以了,不够就再多加些, pts/1 pts/2 pts/3 pts/4 3.重启服务 重启telnet服务 service xinet ...
分类:
Web程序 时间:
2020-11-07 16:33:30
阅读次数:
24
一、多线程 头文件: `#include<pthread.h>` * 1 函数声明: `int pthread_create(pthread_t*restrict tidp,const pthread_attr_t *restrict_attr,void*(*start_rtn)(void*),vo ...
分类:
编程语言 时间:
2020-11-07 16:19:10
阅读次数:
22
# # @lc app=leetcode.cn id=70 lang=python3 # # [70] 爬楼梯 # # @lc code=start class Solution: def climbStairs(self, n: int) -> int: if n == 1: return 1 i ...
分类:
其他好文 时间:
2020-11-07 16:09:23
阅读次数:
19
Jumpserver高可用集群部署,MariaDB及Redis数据库定时备份处理
分类:
数据库 时间:
2020-11-07 15:35:29
阅读次数:
18
CSS代码: /* start */ .my-face { animation: my-face 5s infinite ease-in-out; display: inline-block; margin: 0 5px; } @-webkit-keyframes my-face { 2%, 24% ...
分类:
Web程序 时间:
2020-11-06 02:48:53
阅读次数:
45
前言:Ubuntu下在使用搜狗拼音, 之前能正常使用, 但是最近几天输入法开始抽风, 无法输出中文,之后 打中文的速度一下子快起来了。但是当我打开 idea, phpstorm, sublime 这些软件之后傻眼了,发现输入不了中文,虽然习惯了coding的时候写英文注释,但是有些复杂的逻辑还是需要 ...
分类:
系统相关 时间:
2020-11-06 02:35:40
阅读次数:
25
app="APACHE-Flink" && country="CN" app="Apache-Shiro" body="Welcome to Burp Suite" 威胁情报 body="miner.start("&&header!="Mikrotik HttpProxy"&&country=CN ...
分类:
其他好文 时间:
2020-11-06 02:32:20
阅读次数:
24
一、问题 升级java11后,maven命令打包报错: mvn clean package -Dmaven.test.skip=true [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8 ...
分类:
编程语言 时间:
2020-11-06 01:37:38
阅读次数:
23
问题引入 我在远端的主机(Linux环境)上安装了图形界面的开发环境(Qt),开发工具使用的是QtCreator,现在如何在本地主机(Linux环境)上进行开发? 解决方案一 首先两边主机图形界面都有X系统,X系统是C/S架构的,可以在本地端显示远端的图形界面,关于X系统可以看这篇的简单介绍。在这里 ...
分类:
其他好文 时间:
2020-11-06 01:21:03
阅读次数:
21