码迷,mamicode.com
首页 >  
搜索关键字:sleep    ( 4174个结果
模块 schedule 定时任务
schedule模块实现定时任务 2018 08 29 15:01:51 更多 一、官方示例 二、多线程解决多任务串行执行任务的延迟问题 未使用多线程 使用多线程 ...
分类:其他好文   时间:2019-12-30 21:31:10    阅读次数:60
confluence占用cpu100%,挖矿木马
1发现cpu占用很高,confluence用户启动了很多进程 2查看定时任务 crontab -l -u confluence 解析处理base64 ( while : ; do sleep 5 ; if ! kill -0 26154 >/dev/null 2>&1 ; then /opt/atl ...
分类:其他好文   时间:2019-12-30 21:01:53    阅读次数:298
模块 time datetime 时间获取和处理
模块_time 和时间有关系的我们就要用到时间模块。在使用模块之前,应该首先导入这个模块。 1 延时 time.sleep(secs) 2 获取当前时间戳time.time() 3 表示时间的三种方式 在Python中,通常有这三种方式来表示时间:时间戳、元组(struct_time)、格式化的时间 ...
分类:其他好文   时间:2019-12-30 21:00:23    阅读次数:90
python学习:函数---装饰器
一、什么是装饰器 现在有一个需求,年终考核的时候需要测试某个函数的执行效率,我们怎么做呢?比如这个函数叫func。 对于绝大多数人来说,第一印象肯定是如下的实现方法: import time def func(): start = time.time() time.sleep(1) # 模拟程序延迟 ...
分类:编程语言   时间:2019-12-30 19:08:54    阅读次数:88
Reactor系列(十五)backpressure背压
#java#reactor#flux#backpressure# 背压 视频讲解 : https://www.bilibili.com/video/av81253248/ FluxMonoTestCase.java package com.example.reactor; import lombok ...
分类:其他好文   时间:2019-12-30 14:25:42    阅读次数:79
Python告诉你今天最冷的地方在哪里
抓取目标 这次我们的目标是爬取全国最冷的 10 座城市。 首先打开目标网站 - 中国天气网。 「 http://www.weather.com.cn/textFC/hb.shtml 」 image image 我们要爬取全国所有城市的最低温度,然后获取温度最低的 10 个城市,并绘制成柱状图。 准备 ...
分类:编程语言   时间:2019-12-30 13:04:45    阅读次数:116
注册回调
背景 总结一下在c,c++里注册回调的几种用法 用法 c语言 #include <iostream> using namespace std; int demo(char *str1, char *str2) { printf("print in demo(): %s, %s\n", str1, s ...
分类:其他好文   时间:2019-12-28 21:18:13    阅读次数:102
python多线程join/setDaemon
1 import threading, time 2 3 class Test(): 4 def test1(self): 5 print("--") 6 time.sleep(3) 7 print(" ") 8 9 10 def test2(self): 11 print("==") 12 tim ...
分类:编程语言   时间:2019-12-28 09:36:36    阅读次数:92
c# npoi分批往excel追加数据
直接贴代码: 一开始是一次性读取符合条件的数据,因为数据量大,大概七八千,而且每条记录400个字段。所以后面优化成了分页读取,每次取100条数据,然后再往excel插入数据。 ...
分类:Windows程序   时间:2019-12-27 21:55:06    阅读次数:266
python_并发编程——多线程
1.多线程并发 from threading import Thread import time def func(n): time.sleep(1) print(n) for i in range(10): t = Thread(target=func,args=(i,)) #将函数注册进子线程, ...
分类:编程语言   时间:2019-12-27 21:51:45    阅读次数:75
4174条   上一页 1 ... 58 59 60 61 62 ... 418 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!