用pip管理工具安装库默认使用国外的源文件,下载速度比较慢,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度非常快。比较常用的国内镜像包括:(1)阿里云 http://mirrors.aliyun.com/pypi/simple/(2)豆瓣http://pypi.douban.com/si ...
分类:
其他好文 时间:
2020-07-12 12:21:02
阅读次数:
109
import time import pyautogui x, y = 302, 534 # 鼠标需要移动到的位置 num_seconds = 2 # 将鼠标移动到指定坐标的间隔时间 time.sleep(8) # 延迟8秒 pyautogui.moveTo(x, y, duration=num_s ...
分类:
编程语言 时间:
2020-07-12 11:58:43
阅读次数:
98
一.安装绝大部分Unix系统都支持wrk,需要OS支持lua&openSSL.(Linux都支持)CentOS7安装1.安装Gityuminstall-ygit如果已安装跳到下一步.2.下载wrk源码gitclonehttps://github.com/wg/wrk.gitwrk如果遇到github网络较差,使用国内镜像gitclonehttps://gitee.com/mirrors/w
并发编程中的三个问题 可见性 概念:可见性(Visibility)指一个线程对共享变量进行修改,另一个立即得到修改后的最新值; package juc.synchronized_test; ? import java.util.concurrent.TimeUnit; ? /** * @author ...
分类:
其他好文 时间:
2020-07-08 23:04:57
阅读次数:
77
链接:https://leetcode-cn.com/problems/plus-one/ 代码 class Solution { public: vector<int> plusOne(vector<int>& digits) { int t = 1; for (int i = digits.si ...
分类:
其他好文 时间:
2020-07-08 21:27:49
阅读次数:
43
We have a wooden plank of the length n units. Some ants are walking on the plank, each ant moves with speed 1 unit per second. Some of the ants move t ...
分类:
其他好文 时间:
2020-07-07 10:21:05
阅读次数:
78
最近看到了一个日文版的监控电脑活动记录的软件,又在win 32 APi中看到了GetForegroundWindow函数,于是决定动动小手用vb写个监控电脑活动记录的小程序。 主要函数 函数名 参数 返回值 GetForegroundWindow(void) 无 当前窗口的句柄 GetWindowT ...
分类:
其他好文 时间:
2020-07-06 17:59:35
阅读次数:
65
思路 两个数组或者字符串进行比较,本质上是一种枚举,而减少枚举次数的有效方法是使用动态规划。 用一个二维数组记录状态变化,dp[i][j]表示Si和Pj是否匹配。(Si表示字符串中前 i 个字符长度的子字符串,Pj同理) 状态方程: 代码 class Solution { public boolea... ...
分类:
其他好文 时间:
2020-07-05 22:47:25
阅读次数:
63
一、Jmeter元件 1.测试计划 测试计划可以对线程组进行控制 2.线程组 线程组参数详解 线程数:虚拟用户数。一个虚拟用户占用一个进程或线程。设置多少虚拟用户数在这里也就是设置多少个线程数。 Ramp-Up Period(in seconds)准备时长:设置的虚拟用户数需要多长时间全部启动。如果 ...
分类:
其他好文 时间:
2020-07-05 19:09:26
阅读次数:
74
实例 var d = new Date(); 亲自试一试 JavaScript 日期输出 默认情况下,JavaScript 将使用浏览器的时区并将日期显示为全文本字符串: Tue Apr 02 2019 09:01:19 GMT+0800 (中国标准时间) 稍后,您将在本教程学到更多关于如何显示日期 ...
分类:
编程语言 时间:
2020-07-05 15:37:42
阅读次数:
99