Home
My Books
Browse ▾
Recommendations
Choice Awards
Genres
Giveaways
New Releases
Lists
Explore
News & Interviews
Loading...
Community ▾
Groups
Quotes
Ask the Author
People
Sign in
Join
Jump to ratings and reviews
Want to Read
Rate this book
编写高质量代码:改善Python程序的91个建议 (Effective系列丛书)
张颖 赖勇浩 著
4.25
4 ratings
0 reviews
Want to Read
Rate this book
Python因为具有简单易学 开发效率高 跨平台 面向对象 可扩展 可嵌入 类库丰富等特性,所以被广泛应用于数据处理 游戏逻辑编程 科学计算 系统运维 可编程控制(人工智能)和信息安全等多个领域,是当下最受欢迎的编程语言之一。作为一位Python程序员,如何才能编写出健壮 优雅 高质量的代码?这是很多Python程序员都感兴趣和都在探索的问题。本书尝试着从如下8个方面总结了编写高质量Python代码所需掌握的知识 经验和技巧。
容易被忽视的重要概念和常识,如代码的布局和编写函数的原则等;
编写Python程序惯用的方法,如利用assert语句去发现问题 使用enumerate()获取序列迭代的索引和值等;
语法中的关键条款,如有节制地使用from...import语句 异常处理的几点基本原则等;
常见库的使用,如按需选择sort()或者sorted() 使用Queue使多线程编程更安全等;
Python设计模式的使用,如用发布订阅模式实现松耦合 用状态模式美化代码等;
Python的内部机制,如名字查找机制 描述符机制等;
开发工具的使用,如pip等各种开发工具的使用 各种代码测试用具的使用等;
Python代码的性能优化分析,优化的原则 工具 技巧,以及常见性能问题的解决等。
683 pages, Kindle Edition
First published June 1, 2014
Book details & editions
11 people are currently reading
About the author
张颖 赖勇浩 著
1 book
Follow
Follow
Ratings
&
Reviews
What do
you
think?
Rate this book
Write a Review
Friends
&
Following
Create a free account
to discover what your friends think of this book!
Community Reviews
4.25
4 ratings
0 reviews
5 stars
1 (25%)
4 stars
3 (75%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Search review text
Filters
No one has reviewed this book yet.
Join the discussion
Add
a quote
Start
a discussion
Ask
a question
Can't find what you're looking for?
Get help and learn more about the design.
Help center