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

Chapter 1. Getting Started

Python comes on some computers as part of the OS. On other computers, we'll need to add the Python program and related tools. The installation is pretty simple, but we'll review the details to be sure that everyone has a common foundation.

Once we have Python, we'll need to confirm that Python is present. In some cases, we'll have more than one version of Python available. We need to be sure that we're using Python 3.4 or newer. To confirm that Python's available, we'll do a few interactions at Python's >>> prompt.

To extend our foundation for the remaining chapters, we'll look at a few essential rules of Python syntax. This isn't complete, but it will help us write scripts and learn the language. After we've had more chances to work with simple and compound statements, the detailed syntax rules will make sense.

We'll also look at the Python "ecosystem", starting with the built-in standard library. We'll emphasize the standard library throughout this book for two reasons. First, it's immense—much of what we need is already on our computer. Second, and more important, studying this library is the best way to learn the finer points of Python programming.

Beyond the built-in library, we'll take a look at the Python Package Index (PyPI). If we can't find the right module in the standard library, the second place to look for extensions is PyPI—https://pypi.python.org.

主站蜘蛛池模板: 金山区| 环江| 蓬安县| 和田县| 读书| 隆子县| 张家界市| 巩义市| 宝山区| 晋宁县| 苍山县| 建湖县| 油尖旺区| 永城市| 黄山市| 西丰县| 凭祥市| 四子王旗| 长治市| 安顺市| 土默特右旗| 岑巩县| 桃园县| 大田县| 克拉玛依市| 滨海县| 永康市| 上蔡县| 阿克苏市| 鹤庆县| 苗栗县| 麦盖提县| 石景山区| 奉贤区| 滦南县| 涞源县| 张家口市| 兰州市| 年辖:市辖区| 广平县| 南投市|