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

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.

主站蜘蛛池模板: 台南县| 莱芜市| 开平市| 廊坊市| 无极县| 绥德县| 洛阳市| 江城| 汾西县| 高平市| 南丹县| 闸北区| 喀什市| 平阳县| 石渠县| 奉化市| 长泰县| 招远市| 巴南区| 页游| 永川市| 宾阳县| 介休市| 界首市| 松潘县| 若羌县| 读书| 本溪市| 德化县| 宣汉县| 南江县| 三原县| 平邑县| 新巴尔虎右旗| 巴中市| 宜阳县| 延津县| 安泽县| 凤山市| 布拖县| 靖安县|