基于Flask的示例 Server端 from flask import Flask,render_template import time app = Flask(__name__) @app.route('/bobo') def index_bobo(): time.sleep(2) retur ...
分类:
其他好文 时间:
2021-05-24 02:55:58
阅读次数:
0
import asyncio import time async def say_after(delay, what): """使用 async 声明函数""" await asyncio.sleep(delay) print(what) async def main(): # 一个一个执行 pri ...
分类:
编程语言 时间:
2021-05-24 02:55:21
阅读次数:
0
代码(仅限用于学习交流,未经允许不得用于商业获取非法利益): import requests from bs4 import BeautifulSoup import time import csv def get_url(start_num,end_num): url_list = [] #建立一 ...
分类:
其他好文 时间:
2021-05-24 02:50:08
阅读次数:
0
Little Q is very sleepy, and he really needs some coffee to make him awake. At this time, Little L brings a pot to Little Q, and he states the pot as ...
分类:
其他好文 时间:
2021-05-24 02:14:37
阅读次数:
0
2 3 import java.util.concurrent.ArrayBlockingQueue; 4 import java.util.concurrent.BlockingQueue; 5 import java.util.concurrent.LinkedBlockingDeque; 6 ...
分类:
其他好文 时间:
2021-05-24 02:13:16
阅读次数:
0
https://leetcode-cn.com/problems/find-minimum-time-to-finish-all-jobs/ 不会做,蹭个积分就走~ class Solution { /** * 最小的 工人最大用时 */ private int minId = Integer.MA ...
分类:
其他好文 时间:
2021-05-24 01:38:37
阅读次数:
0
想找一个全平台的markword编辑查看器,最终选择坚果云,支持移动和pc端,并有linux版,感觉很不错,各端之间文件也可以同步 安装相关依赖包 sudo apt-get install libglib2.0-dev libgtk2.0-dev libnautilus-extension-dev ...
分类:
系统相关 时间:
2021-05-24 01:05:03
阅读次数:
0
环境:centos7 效果:监控所有接口,连续失败两次,发送信息给运维人员 思路:执行check.sh—读取interface接口内容—调用http-check脚本判断接口是否成功,失败写入文件fail.txt中—est-faile-time脚本判断失败的次数,两次及以上检测都失败——调用脚本sed ...
分类:
Web程序 时间:
2021-05-24 00:58:58
阅读次数:
0
一、datetime模块 12 # datetime模块可以看成是时间加减的模块import datetime 12 # 返回当前时间print(datetime.datetime.now()) 1 2019-03-07 16:22:14.544130 1 print(datetime.date.f ...
分类:
其他好文 时间:
2021-05-24 00:49:07
阅读次数:
0
①精确到纳秒 long startTime=System.nanoTime();//获取开始时间 /* 测试的程序代码; */ long endTime=System.nanoTime();//获取结束时间 System.out.println("运行时间是:"+(endTime-startTime ...
分类:
编程语言 时间:
2021-05-24 00:33:53
阅读次数:
0