码迷,mamicode.com
首页 >  
搜索关键字:sleep    ( 4174个结果
开启子进程的两种方式
#方式一: from multiprocessing import Process # 开启子进程 import time def task(name): print("%s is running" % name) time.sleep(3) print("%s is done" % name) i ...
分类:系统相关   时间:2020-01-31 15:52:27    阅读次数:72
Click Image关键字——模拟单击某一个图片 其余:Click Button / Click Link
Click Image关键字——模拟单击某一个图片; 该关键字接收[ locator ]一个参数,locator可以通过id、src、alt等进行定位; Open Browser http://www.baidu.com chrome Click Image 定位地址 Sleep 10 Close ...
分类:其他好文   时间:2020-01-31 00:44:27    阅读次数:126
docker的安装,自己写了一个安装docker的脚本,辅助做docker安装的实验(ubuntu)
#!/bin/bash #获取用户名 [ pwd == '/root' ] && hn="root@$(hostname):~#" || hn="root@$(hostname):pwd#" d (){ echo -e "\033[1m$hn$dd\033[0m" } a (){ sleep 1 } ...
分类:系统相关   时间:2020-01-29 12:48:06    阅读次数:91
基于时间的注入
基于时间的注入 第一步:输入and 1=1以及and 1=2 第二步:使用sleep()函数,可观察到刷新了10秒才返回界面 第三步:猜测库名的长度 and if((length(database())=1),1,sleep(10)) --+ 所以库名字的长度为8 第四步:猜测库名 and if(( ...
分类:其他好文   时间:2020-01-28 21:23:40    阅读次数:67
Mysql一分钟定位 Next-Key Lock,你需要几分钟
连接与线程查看连接信息showprocesslist+----+------+------------------+------+---------+------+----------+------------------+|Id|User|Host|db|Command|Time|State|Info+----+------+------------------+------+---------
分类:数据库   时间:2020-01-28 21:15:14    阅读次数:79
python线程threading
线程示例: import threading import time # 唱歌任务 def sing(): # 扩展: 获取当前线程 # print("sing当前执行的线程为:", threading.current_thread()) for i in range(5): print("正在唱歌 ...
分类:编程语言   时间:2020-01-28 19:15:45    阅读次数:66
time模块
import time # print(time.time()) # time.sleep(3) # print(help(time)) # print(time.gmtime()) # 中国24个时区 北京+8 结构化时间time.struct_time(tm_year=2020, tm_mon= ...
分类:其他好文   时间:2020-01-28 17:33:42    阅读次数:73
[POJ - 2387] L - Til the Cows Come Home(图论)
L - Til the Cows Come Home POJ - 2387 Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John ...
分类:其他好文   时间:2020-01-28 17:16:11    阅读次数:73
python-多线程编程
1 多线程编程 1.1 进程和线程 1.1.1 进程简介 计算机程序不过是磁盘中的可执行的二进制的数据,它们只有在被读到内存中,被操作系统调用的时候才开始它们的生命期。进程是程序的一次执行,每个进程都有自己的地址空间、内存、数据栈及其他记录其运行轨迹和辅助数据。操作系统管理其上运行的所有进程,并为这 ...
分类:编程语言   时间:2020-01-27 19:00:19    阅读次数:97
threading模块
threading#importtime#importthreading#begin=time.time()##deffoo(n):#print(‘foo%s‘%n)#time.sleep(1)#print(‘endfoo‘)##defbar(n):#print(‘bar%s‘%n)#time.sleep(3)#print(‘endbar‘)##t1=threading.Thread(target
分类:其他好文   时间:2020-01-26 17:37:07    阅读次数:68
4174条   上一页 1 ... 50 51 52 53 54 ... 418 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!