- ArcPy and ArcGIS:Geospatial Analysis with Python
- Silas Toms
- 191字
- 2021-07-23 20:23:07
What is a Python script?
Let's start with the very basics of writing and executing a Python script. What is a Python script? It is a simple text file that contains a series of organized commands written in a formalized language. The text file has the extension .py
, but other than that, there is nothing to distinguish it from any other text file. It can be opened using a text editor such as Notepad or Wordpad, but the magic that is Python does not reside in a Python script. Without the Python interpreter, a Python script cannot be run and the commands it contains cannot be executed.
How Python executes a script
Understanding how Python works to interpret a script and then execute the commands within is as important as understanding the Python language itself. Hours of debugging and error checking can be avoided by taking the time to set up Python correctly. The interpretive nature of Python means that a script will have to be first converted into bytecode before it can be executed. We will cover the steps that Python takes to achieve our goal of automating GIS analysis.
- Getting started with Google Guava
- GraphQL學(xué)習(xí)指南
- vSphere High Performance Cookbook
- Web Scraping with Python
- CentOS 7 Server Deployment Cookbook
- Developing Middleware in Java EE 8
- Learning SQLite for iOS
- 64位匯編語言的編程藝術(shù)
- 21天學(xué)通C++(第6版)
- Silverlight魔幻銀燈
- Oracle Exadata專家手冊(cè)
- Python全棧數(shù)據(jù)工程師養(yǎng)成攻略(視頻講解版)
- Python語言實(shí)用教程
- Access數(shù)據(jù)庫(kù)應(yīng)用教程(2010版)
- 3D Printing Designs:The Sun Puzzle