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

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.

主站蜘蛛池模板: 永寿县| 贵溪市| 哈巴河县| 卢氏县| 安乡县| 醴陵市| 泰兴市| 彰化市| 保康县| 铁岭县| 拉萨市| 古田县| 白玉县| 莱芜市| 吉安县| 香格里拉县| 句容市| 黎平县| 英吉沙县| 鹰潭市| 富阳市| 蒙阴县| 龙泉市| 五指山市| 汾西县| 德安县| 通山县| 永德县| 晋宁县| 织金县| 石渠县| 谷城县| 新乐市| 孟连| 同江市| 巴林右旗| 阳原县| 巴彦淖尔市| 盘锦市| 乡城县| 萨迦县|