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

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.

主站蜘蛛池模板: 柘荣县| 安仁县| 买车| 黄冈市| 外汇| 伽师县| 贵州省| 苍溪县| 仪陇县| 涟源市| 廉江市| 锦州市| 康马县| 弋阳县| 贵南县| 巫山县| 柳河县| 铁岭市| 松溪县| 皋兰县| 陆川县| 武义县| 专栏| 图们市| 嘉鱼县| 大城县| 高邑县| 措勤县| 罗城| 毕节市| 弥勒县| 汉寿县| 惠安县| 天峨县| 益阳市| 湘西| 淮阳县| 宁武县| 聂拉木县| 新竹市| 巢湖市|