Skip to Content
Python高级编程(第2版)
book

Python高级编程(第2版)

by Posts & Telecom Press, Michał Jaworski, Tarek Ziadé
February 2024
Intermediate to advanced
423 pages
6h 9m
Chinese
Packt Publishing
Content preview from Python高级编程(第2版)

第1章 Python现状

Python很适合开发者使用。

无论你或你的客户用的是什么操作系统,都可以使用Python。例如你可以在Linux上工作,然后部署到其他系统上,除非你的代码与特定平台相关,或者用到了特定平台的库。但这一特性已经不新鲜了(Ruby、Java等很多其他语言都可以做到这一点)。本书还会讲到Python的其他特性,所有这些特性是使得Python成为一家公司主力开发语言的重要原因。

本书主要讲的是Python的3.5版本,如果没有明确说明的话,书中所有代码示例都是用这个版本的Python编写的。由于这一版本尚未被广泛使用,本章将会向读者介绍一下Python 3的当前现状,同时介绍Python的现代开发方法。本章主要包括以下内容。

  • 如何保持Python 2和Python 3之间的兼容性。
  • 为了开发的顺利进行,在应用层面和操作系统层面如何解决开发环境隔离的问题。
  • 如何增强Python提示符的功能。
  • 如何使用pip安装Python包。

每本书的开头都要来点开胃小菜。如果你对Python已经很熟悉了(特别是最新的3.x版本),并且掌握了开发中做环境隔离的正确方法,你可以跳过本章的前两节,快速阅读其他小节即可。其他小节会讲到一些工具和资源,它们并非必不可少,但可以大大提高Python开发效率。不过一定要读一下关于应用层环境隔离和pip的一节,因为这一节提到的工具会在本书后面的内容中用到。

Python的历史最早可追溯到20世纪80年代末,但是1.0版的发行时间是在1994年,所以Python并不是一门非常年轻的语言。这里本该介绍Python主要版本发布的整个时间线,但其实真正重要的日期只有一个:2008年12月3日,也就是Python ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Hadoop实际解决方案手册

Hadoop实际解决方案手册

Posts & Telecom Press, JONATHAN OWENS, Lentz Jon, Femiano Brian
TensorFlow机器学习

TensorFlow机器学习

Posts & Telecom Press, Quan Hua, Shams Ul Azeem, Saif Ahmed
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
Kafka权威指南(第2版)

Kafka权威指南(第2版)

Gwen Shapira, Todd Palino, Rajini Sivaram, Krit Petty

Publisher Resources

ISBN: 9781835887745