tasks.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:pycos 作者: pgiri 项目源码 文件源码
def pycos_proc(n, task=None):
    s = random.uniform(0.5, 3)
    print('%f: process %d sleeping for %f seconds' % (time.time(), n, s))
    yield task.sleep(s)
    print('%f: process %d terminating' % (time.time(), n))

# create 10 clients
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号