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

Conventions

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

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "It should be noted that the type() function has another use as well."

A block of code is set as follows:

import abc
import importlib


class Plugins(abc.ABCMeta):
    plugins = dict()

    def __new__(metaclass, name, bases, namespace):
        cls = abc.ABCMeta.__new__(
            metaclass, name, bases, namespace)

Any command-line input or output is written as follows where the >>> indicate the Python console and the # indicates a regular Linux/Unix shell:

>>> class Spam(object):
… eggs = 'my eggs'

>>> Spam = type('Spam', (object,), dict(eggs='my eggs'))

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 伊春市| 郓城县| 柏乡县| 高雄县| 莱西市| 潜山县| 建始县| 芒康县| 崇左市| 永兴县| 麦盖提县| 南溪县| 文安县| 瑞昌市| 长治县| 双峰县| 江安县| 彩票| 云阳县| 萝北县| 黄骅市| 彩票| 武汉市| 华坪县| 天峻县| 尤溪县| 台中县| 竹山县| 尉氏县| 哈尔滨市| 平安县| 星座| 苍南县| 彭泽县| 正安县| 富顺县| 玛沁县| 九台市| 芦溪县| 田林县| 古田县|