- 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.
- 計算思維與算法入門
- Java異步編程實戰(zhàn)
- OpenShift開發(fā)指南(原書第2版)
- Game Programming Using Qt Beginner's Guide
- React Native Cookbook
- Python機器學習實戰(zhàn)
- PHP+MySQL網(wǎng)站開發(fā)項目式教程
- Mastering ServiceNow(Second Edition)
- Android Native Development Kit Cookbook
- C程序設(shè)計實踐教程
- C語言開發(fā)基礎(chǔ)教程(Dev-C++)(第2版)
- Zabbix Performance Tuning
- Python預(yù)測分析與機器學習
- Java高級程序設(shè)計
- Mastering Bootstrap 4