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版)
3
第
1
章
Python
初探
只有丑陋的语言才会流行。
Python
是一个例外。
——高德纳
1.1
谜题
让我们从两个小谜题及其解决方案开始。你认为下面两行代码的含义是什么?
(Row 1): (RS) K18,ssk,k1,turn work.
(Row 2): (WS) Sl 1 pwise,p5,p2tog,p1,turn.
看上去挺有技术范儿,似乎像是某种计算机程序。实际上,这是一幅
针织图案
。更准确地
说,以上代码片段描述的是如何编织袜子的足跟部分,如图
1-1
所示。
图
1-1
:针织袜子
4
|
第
1
章
就我而言,看懂它们的难度不亚于让猫咪搞明白数独拼图,但对我妻子来说这是轻而易举
的事。你要是也懂编织,看懂它自然不在话下。
来试试另一段从索引卡上找到的神秘文字。你马上就能明白这是要干什么,尽管可能不清
楚最终会做出什么东西。
1/2
杯黄油或者人造黄油
1/
2
杯奶油
2.5
杯面粉
1
茶匙盐
1
汤匙糖
4
杯糊状土豆(冷却的)
确保在加入面粉之前所有材料都是冷却的。
混合所有材料。
揉搓均匀。
揉成
20
个球并冷藏。
对于每一个球:
在布上洒上面粉;
用擀面杖将球擀成圆饼;
入锅,炸至棕色;
翻面,继续炸。
就算不会做饭,你应该也能看出这是一份
食谱
1
:一系列食材以及准备工作。这到底是在制
作什么食物呢 ...
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