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

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.

主站蜘蛛池模板: 汕头市| 临夏市| 河池市| 灵台县| 方城县| 尚志市| 马山县| 纳雍县| 澎湖县| 芦溪县| 鹤岗市| 荣成市| 平潭县| 永兴县| 德格县| 玛沁县| 枝江市| 华容县| 志丹县| 潮安县| 鸡西市| 鄂托克旗| 临汾市| 涟源市| 台北市| 马关县| 巩义市| 特克斯县| 墨竹工卡县| 漠河县| 扶沟县| 钟祥市| 长垣县| 金秀| 嵊州市| 酉阳| 乌鲁木齐市| 舞钢市| 新邵县| 荥阳市| 湾仔区|