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

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.

主站蜘蛛池模板: 南汇区| 得荣县| 交城县| 霍邱县| 涿州市| 南岸区| 怀远县| 平昌县| 桓台县| 容城县| 同江市| 望谟县| 定南县| 嘉善县| 岳池县| 岳阳市| 安达市| 涪陵区| 宁强县| 阿合奇县| 宝应县| 平昌县| 潞西市| 景泰县| 稷山县| 清丰县| 保山市| 厦门市| 金堂县| 靖远县| 托里县| 菏泽市| 大丰市| 日喀则市| 巴彦县| 鹤庆县| 金溪县| 沭阳县| 涿鹿县| 襄垣县| 日喀则市|