Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
Python语言及其应用(第2版)
by
Bill Lubanovic
March 2022
Intermediate to advanced
522 pages
13h 52m
Chinese
Posts & Telecom Press
Content preview from
Python语言及其应用(第2版)
14
|
第
1
章
当然,
Python
既不收费,也没有限制,就像啤酒(价格便宜)和演讲(可以自由发挥)一
样。你可以使用
Python
随
心所欲地编写代码,想用在哪里就用在哪里。没人会看完你的
Python
程序,然后说:
“这个小程序不错,希望不会发生什么意外。”
Python
几乎可以在任何地方运行
,并且“自带电池”(在其标准库中包含了大量的实用软
件)。本书介绍了许多标准库和有用的第三方
Python
代码示例。
但是,选择
Python
的最佳理由可能出人意料
:大家都
享受
用
Python
编程的过程,而不是
将其当作为了完成工作而不得不使用的“恶魔”。借用一句大家都熟悉的话就是“适合大
脑
”(
fit
your
brain
)。当需要使用其他语言时,开发人员经常会想念
Python
的一些设计特
性。这就是
Python
能够脱颖而出的原因。
1.7
为什么不选择
Python
Python
并不是适合所有场合的最佳语言。
它并不是默认安装在所有环境中。如果你的计算机上没有
Python
,附录
B
会告诉你如何
安装。
对于大多数应用来说,
Python
已经足够快了
,但是在有些要求更高的场合,它可能还不够
快。如果你的程序大部分时间在进行计算(专业术语是
CPU
密集型
),那么可以使用
C
、
C++
、
C#
、
Java
、
Rust
或
Go
来编写程序,它们通常会比同等的
Python
程序运行速度更快。
但也不一定!
下面是一些解决方案。
•
有时候用
Python
实现的一种更好的
算法
(一系列解决问题的步骤)可以打败用
C
编写
的低效算法。
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.
Start your free trial
You might also like
Python编程入门与实战
Posts & Telecom Press, Fabrizio Romano
Python实用技能学习指南
Posts & Telecom Press, Robert Smallshire, Austin Bingham
Python技术基础视频教程
保罗·J·戴特尔
Python面向对象编程指南
Posts & Telecom Press, Steven F. Lott
Publisher Resources
ISBN: 9787115586223