Tài liệu Learning Python (O’Reilly ) ppt

748 1.3K 5
Tài liệu Learning Python (O’Reilly ) ppt

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... Learning Python is designed to be naturally complemented by O’Reilly’s other Python books For instance, Programming Python, another book I authored, provides larger and more complete examples, along with tutorials on application programming techniques, and was explicitly designed to be a follow-up text to the one you are reading now Roughly, the current editions of Learning Python and Programming Python. .. upcoming Python 3.0 release have been incorporated where appropriate Here are some of the major language topics of which you’ll find new or expanded coverage in this edition: • The new B if A else C conditional expression (Chapter 1 2) • with/as context managers (Chapter 2 7) • try/except/finally unification (Chapter 2 7) • Relative import syntax (Chapter 2 1) xxix • Generator expressions (Chapter 1 7) • New... 1 7) • New generator function features (Chapter 1 7) • Function decorators (Chapter 2 6) • The set object type (Chapter 5) • New built-in functions: sorted, sum, any, all, enumerate (Chapters 4 and 1 3) • The decimal fixed-precision object type (Chapter 5) • New and expanded material on files, list comprehensions, iterators, and more (Chapters 13 and 1 7) • New development tools coverage: Eclipse, distutils,... the Python language and in Python training, as well as a handful of structural changes This Edition’s Python Language Changes On the language front, this edition has been thoroughly updated to reflect Python 2.5 and all changes to the language since the publication of the second edition (The second edition was based largely on Python 2.2, with some 2.3 features grafted on at the end of the project .). .. | xiii Files in Action Storing and parsing Python objects in files Storing native Python objects with pickle Storing and parsing packed binary data in files Other File Tools Type Categories Revisited Object Flexibility References Versus Copies Comparisons, Equality, and Truth The Meaning of True and False in Python Python’s Type Hierarchies Other Types in Python Built-in Type Gotchas Assignment Creates... Edition’s Python Training Changes Besides such language changes, this edition has been augmented with new topics and examples presented in the Python training sessions I have held in recent years For example, you’ll find: • A new chapter introducing built-in types (Chapter 4) • A new chapter introducing statement syntax (Chapter 1 0) • A new full chapter on dynamic typing, with enhanced coverage (Chapter 6). .. for learning the core Python language, the presentation has been made more complete and augmented with new use cases throughout xxx | Preface In addition, this entire edition integrates a new set of Python tips and tricks, gleaned from teaching classes during the last 10 years, and using Python for real work over the last 15 The exercises have also been updated and expanded to reflect current Python. .. here in more satisfying depth Other texts, such as O’Reilly’s Programming Python, Python Cookbook, Python in a Nutshell, and Python Pocket Reference, pick up where this book leaves off and provide a more complete look at application-level topics and reference materials The purpose of the book you are reading now is solely to teach Python itself so that you can apply it to whatever domain you happen to... talk much about Python/ C integration—a complex topic that is nevertheless central to many Python- based systems We also won’t talk much about Python s history or development processes And popular Python applications such as GUIs, system tools, and network scripting get only a short glance, if they are mentioned at all Naturally, this scope misses some of the big picture By and large, Python is about... 180 181 182 182 183 184 186 188 189 191 191 191 192 193 193 193 195 195 195 196 Part III Statements and Syntax 10 Introducing Python Statements 201 Python Program Structure Revisited Python s Statements A Tale of Two ifs What Python Adds What Python Removes Parentheses are optional End of line is end of statement End of indentation is end of block Why Indentation Syntax? . y0 w0 h1" alt="" Learning Python Other resources from O’Reilly Related titles Programming Python Python Cookbook ™ Python in a Nutshell Python Pocket Reference Twisted. today for free. Learning Python THIRD EDITION Mark Lutz Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo Learning Python, Third

Ngày đăng: 22/01/2014, 01:20

Từ khóa liên quan

Mục lục

  • Learning Python, Third Edition

    • Table of Contents

    • Preface

      • About This Third Edition

        • This Edition’s Python Language Changes

        • This Edition’s Python Training Changes

        • This Edition’s Structural Changes

        • This Edition’s Scope Changes

        • About This Book

          • This Book’s Prerequisites

          • This Book’s Scope and Other Books

          • This Book’s Style and Structure

          • Book Updates

          • About the Programs in This Book

          • Preparing for Python 3.0

          • About This Series

          • Using Code Examples

          • Font Conventions

          • Safari® Books Online

          • How to Contact Us

          • Acknowledgments

          • Part I

            • A Python Q&A Session

              • Why Do People Use Python?

                • Software Quality

                • Developer Productivity

                • Is Python a “Scripting Language”?

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan