官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "In order to exemplify the use of the multiprocessing.Pipe object, we will implement a Python program that creates two processes, A and B."

A block of code is set as follows:

def producer_task(conn):
    value = random.randint(1, 10)
    conn.send(value)
    print('Value [%d] sent by PID [%d]' % (value, os.getpid()))
    conn.close()

Any command-line input or output is written as follows:

$celery –A tasks –Q sqrt_queue,fibo_queue,webcrawler_queue worker 
--loglevel=info

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 宝清县| 罗平县| 西吉县| 乐业县| 夏津县| 博白县| 青冈县| 涿州市| 茶陵县| 铁岭县| 独山县| 孝感市| 平安县| 安义县| 江川县| 富源县| 延长县| 安泽县| 措美县| 贵阳市| 汶上县| 新昌县| 杭州市| 洞头县| 分宜县| 荣昌县| 句容市| 永善县| 木兰县| 和平区| 剑河县| 黎城县| 鹤壁市| 巴里| 玉溪市| 固阳县| 昆山市| 武冈市| 马龙县| 安宁市| 栾城县|