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

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can include other modules through the use of the import statement."

A block of code is set as follows:

def spam():
    return 'spam!'

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

def more_spam():
 spams = ' '.join([spam()] * 5)
    return spams

Any command line input or output is written as follows:

> mayapy --version
Python 2.6.4

Code meant to be entered by the Python interactive interpreter uses its familiar conventions. Input lines are prefixed with ">>>". Continuations for multiline statements are prefixed with "...". Output from the interpreter has no prefix:

>>> 'This is input'.replace('in', 'out')
'This is output'
>>> if True:
...     print 'Hello!'
Hello

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Clicking on the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 池州市| 延安市| 济南市| 新安县| 尼玛县| 阿拉尔市| 大余县| 嘉义县| 永新县| 长泰县| 佳木斯市| 长阳| 托里县| 台江县| 泸水县| 台东县| 通许县| 盈江县| 类乌齐县| 承德市| 彭州市| 德惠市| 陈巴尔虎旗| 都安| 德州市| 兴城市| 剑川县| 志丹县| 延庆县| 乌兰浩特市| 巴彦淖尔市| 怀来县| 微山县| 平顶山市| 贵德县| 德阳市| 贵阳市| 广南县| 南川市| 海阳市| 武陟县|