摘要: 背景: 有些情况下,我们需要sleep等待运行结果,但是,这个等待时间是有限的,一旦超出等待时间限制,此时,我们判定它失败。 代码(python2.7): # -*- coding: utf-8 -*- import time from threading import Thread from li 阅读全文
posted @ 2022-06-14 14:04 萤huo虫 阅读(32) 评论(0) 推荐(0) 编辑