py3k-gearman

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-05 06:12:43

软件介绍

python3 的 gearman 客户端

A python3 gearman client wraper on libgearman

# client
>>> import gearman
>>> client = gearman.Client()
>>> client.add_servers('localhost:4730')
>>> client.do('echo', 'hello')

# worker
>>> import gearman
>>> worker = gearman.Worker()
>>> worker.add_servers('localhost:4730')
>>> def echo(job):
...     print(job.workload)
...     job.complete(job.workload)
>>> worker.add_func('echo', echo)
>>> worker.work()

本文地址:https://codercto.com/soft/d/13901.html

How to Think About Algorithms

How to Think About Algorithms

Jeff Edmonds / Cambridge University Press / 2008-05-19 / USD 38.99

HOW TO THINK ABOUT ALGORITHMS There are many algorithm texts that provide lots of well-polished code and proofs of correctness. Instead, this one presents insights, notations, and analogies t......一起来看看 《How to Think About Algorithms》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器