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

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: "A Python package is a directory containing one or more Python files (that is, modules) plus one __init__.py file."

A block of code is set as follows:

import ogr
# Open the shapefile and get the first layer.
datasource = ogr.Open("../data/world_borders_simple.shp") 
layer = datasource.GetLayerByIndex(0)
print("Number of features: {}".format(layer.GetFeatureCount()))

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

if __name__ == '__main__':
    gdal.PushErrorHandler('CPLQuietErrorHandler')
 vector_data = PointCollection("../data/geocaching.gpx")
    vector_data.print_information()

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

Collecting django
 Downloading Django-1.9-py2.py3-none-any.whl (6.6MB)
 100% |################################| 6.6MB 43kB/s
Installing collected packages: django
Successfully installed django-1.9

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: "Proceed with the default options by clicking on the Next button."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 乌兰县| 青州市| 金阳县| 枝江市| 吴堡县| 娱乐| 阿勒泰市| 临猗县| 滦平县| 三明市| 清流县| 天长市| 高淳县| 平陆县| 呼伦贝尔市| 平陆县| 大荔县| 礼泉县| 镇平县| 金华市| 葫芦岛市| 桦川县| 花莲市| 含山县| 阿尔山市| 娱乐| 桃江县| 醴陵市| 阳城县| 汉中市| 阿勒泰市| 防城港市| 乐安县| 江达县| 静安区| 新乡县| 兴和县| 桂林市| 富蕴县| 将乐县| 若尔盖县|