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

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.

主站蜘蛛池模板: 依兰县| 桦川县| 新邵县| 肥乡县| 衡南县| 宣恩县| 邵东县| 余姚市| 胶州市| 富锦市| 承德市| 兴安盟| 英超| 维西| 庆城县| 凤庆县| 南通市| 九龙城区| 海原县| 仪征市| 琼海市| 梅河口市| 灵丘县| 临朐县| 宁强县| 东宁县| 宜春市| 巨鹿县| 桐庐县| 清新县| 昭苏县| 石家庄市| 开化县| 万载县| 杭州市| 万载县| 郸城县| 封开县| 正安县| 麻江县| 都江堰市|