商品簡介
作者簡介
名人/編輯推薦
目次
1.A PythonQ&ASession
Why D0 People Use Python?
Software Quality
Developer Productivity
Is Python a“Scripting Language”?
OK.but What’S the Downside?
Who Uses Python Today?
What Can I Do with Python?
Systems Programming
GUIs
Internet Scripting
Component Integration
Database Programming
Rapid Prototyping
Numeric and Scientific Programming
And More:Gaming,Images,Data Mining,Robots,Excel
How Is Python Developed and Supported?
0pen Source Tradeoffs
What Are Python’S Technical Strengths?
It’S Object—Oriented and Functional
It’S Free
It’S Portable
It’S Powerful
It’S Mixable
It’S Relatively Easy to Use
It's Relatively Easy tO Learn
It’S Named After Monty Python
How Does Python Stack Up to Language X?
Chapter Summary
Test Your Knowledge:Quiz
Test Your Knowledge:Answers
2.HowPython RunsPrograms
Introducing the Python Interpreter
Program Execution
The Programmer’S View
Python’S View
Execution Model Variations
Python Implementation Alternatives
Execution Optimization Tools
Frozen Binaries
Future Possibilities7
Chapter Summary
Test Your Knowledge:Quiz
Test Your Knowledge:Answers
3.HowYou Run Programs
The Interactive Prompt
Starting an Interactive Session
The System Path
New Windows 0ptions in 3.3:PATH.Launcher
Where to Run:Code Directories
What NOt tO Type:Prompts and Comments
Running Code Interactively
Why the Interactive Prompt?
Usage Notes:The Interactive Prompt
System Command Lines and Files
AFirst Script
Running Files with Command Lines
Command.Line Usage Variations
Usage Notes:Command Lines and Files
Unix—Style Executable Scripts:#!
Unix Script Basics
The Unix env Lookup Trick
The Python 3.3 Windows Launcher:#!Comes to Windows
Clicking File Icons
Icon—Click Basics
Clicking Icons on Windows
The input Trick on Windows
Other Icon.Click Limitations
Module Imports and Reloads
Import and Reload Basics
The Grander Module Story:Attributes
Usage Notes:import and reload
Using exec to Run Module Files
The IDLE User Interface
IDLE Startup Details
IDLE Basic Usage
IDLE Usability Features
Advanced IDLE Tools
Usage Notes:IDLE
Other IDEs
Other Launch Options
Embedding Calls
Frozen Binary Executables
Text Editor Launch Options
Still Other Launch 0ptions
Future Possibilities?
Which 0ption Should I Use?
Chapter Summary
Test Your Knowledge:Quiz
Test Your Knowledge:Answers
Test Your Knowledge:Part I Exercises
Part II.Types and Operations
Part III.Statements and Syntax
Part IV.Functions and Generators
Part V.Modules and Packages
Part VI.Classes and OOP
Part VII.Exceptions and Tools
Part VIII.Advanced Topics
Part IX.Appendixes
Index
……
書摘/試閱
Python 2.x coverage here has been updated to include features such as dictionary and set comprehensions that were formerly for 3.X only, but have been back-ported for use in 2.7.
Python 3.x coverage has been augmented for new yield and raise syntax; the
__pycache_ bytecode model; 3.3 namespace packages; PyDoc's all-browser
mode; Unicode literal and storage changes; and the new Windows launcher shipped with 3.3.
Assorted new or expanded coverage for JSON, timeit, PyPy, os.popen, generators, recursion, weak references,_mro_,_iter_, super,_slots_, metaclasses, descriptors, random. Sphinx, and more has been added, along with a general increase in 2.x compatibihty in both examples and narrative.
This edition also adds a new conclusion as Chapter 41 (on Python's evolution), two new appendixes (on recent Python changes and the new Windows launcher), and one new chapter (on benchmarking: an expanded version of the former code timing example). See Appendix C for a concise summary of Python changes between the prior edition and this one, as well as links to their coverage in the book. This appendix also summarizes initial differences between 2.X and 3.X in general that were first addressed in the prior edition, though some, such as new-style classes, span versions and simply become mandated in 3.X (more on what the X's mean in a moment).
Per the last bullet in the preceding list, this edition has also experienced some growth because it gives fuller coverage to more advanced language features-which many of us have tried very hard to ignore as optional for the last decade, but which have now grown more common in Python code. As we'll see, these tools make Python more powerful, but also raise the bar for newcomers, and may shift Python's scope and definition. Because you might encounter any of these, this book covers them head-on, instead of pretending they do not exist.
Despite the updates, this edition retains most of the structure and content of the prior edition, and is still designed to be a comprehensive learning resource for both the 2.X and 3.x Python lines. While it is primarily focused on users of Python 3.3 and 2.7-the latest in the 3.X line and the likely last in the 2.X line-its historical perspective also makes it relevant to older Pythons that still see regular use today.
Though it's impossible to predict the future, this book stresses fundamentals that have been valid for nearly two decades, and will likely apply to future Pythons too. As usual, I'll be posting Python updates that impact this book at the book's website described ahead. The "What's New" documents in Python's manuals set can also serve to fill in the gaps as Python surely evolves after this book is published.
主題書展
更多主題書展
更多書展本週66折
您曾經瀏覽過的商品
購物須知
大陸出版品因裝訂品質及貨運條件與台灣出版品落差甚大,除封面破損、內頁脫落等較嚴重的狀態,其餘商品將正常出貨。
特別提醒:部分書籍附贈之內容(如音頻mp3或影片dvd等)已無實體光碟提供,需以QR CODE 連結至當地網站註冊“並通過驗證程序”,方可下載使用。
無現貨庫存之簡體書,將向海外調貨:
海外有庫存之書籍,等候約45個工作天;
海外無庫存之書籍,平均作業時間約60個工作天,然不保證確定可調到貨,尚請見諒。
為了保護您的權益,「三民網路書店」提供會員七日商品鑑賞期(收到商品為起始日)。
若要辦理退貨,請在商品鑑賞期內寄回,且商品必須是全新狀態與完整包裝(商品、附件、發票、隨貨贈品等)否則恕不接受退貨。