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

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.

主站蜘蛛池模板: 丹江口市| 奉化市| 灌云县| 鄂尔多斯市| 邵阳市| 灵川县| 康定县| 元朗区| 永春县| 韩城市| 前郭尔| 集安市| 平湖市| 辛集市| 高台县| 隆昌县| 鄢陵县| 乌海市| 乐都县| 弥勒县| 松江区| 隆德县| 宜君县| 阿图什市| 社会| 于田县| 无棣县| 固安县| 丰顺县| 高邑县| 清镇市| 武安市| 固镇县| 贵南县| 焉耆| 双江| 嘉黎县| 石狮市| 平舆县| 达孜县| 宁陕县|