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

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.

主站蜘蛛池模板: 吉林市| 楚雄市| 壤塘县| 渑池县| 舞阳县| 师宗县| 永春县| 教育| 胶南市| 双鸭山市| 岐山县| 河间市| 宜都市| 青州市| 六枝特区| 怀集县| 澳门| 昭苏县| 汉源县| 湘西| 卫辉市| 新化县| 巧家县| 商丘市| 海宁市| 锡林浩特市| 鞍山市| 杭州市| 和龙市| 吴桥县| 荥经县| 宁海县| 肃北| 宽城| 腾冲县| 铁力市| 东城区| 宣汉县| 调兵山市| 临城县| 肇庆市|