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

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: "Open up a Python console, and type import this."

A block of code is set as follows:

# we define a function, called local
def local():
    m = 7
    print(m)

m = 5
print(m)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

# we define a function, called local
def local():
    m = 7
    print(m)

m = 5
print(m)

Any command-line input or output is written as follows:

>>> from math import factorial
>>> factorial(5)
120

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "To open the console on Windows, go to the Start menu, choose Run, and type cmd."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 吉安县| 共和县| 五指山市| 津南区| 临沂市| 河北区| 开封市| 北宁市| 和平县| 沙雅县| 淮南市| 绿春县| 滨海县| 塔城市| 钟山县| 阳城县| 五莲县| 秭归县| 习水县| 黄大仙区| 武城县| 专栏| 宜春市| 横峰县| 宣城市| 宜都市| 寻乌县| 密山市| 永安市| 乐山市| 青河县| 新津县| 咸阳市| 六枝特区| 自治县| 青岛市| 杭州市| 湾仔区| 宜城市| 汉沽区| 榆林市|