1. Trang chủ
  2. » Tất cả

Core Python Programming

954 1 0

Đ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

Cấu trúc

  • Core Python

    • Core Python Programming

    • Table of Contents

    • Welcome to Python!

      • Style:Technical, Yet Easy Reading

      • Author's Experience with Python

      • Book Contents

      • Optional Sections

      • Conventions

      • Book Support

    • Acknowledgements

    • Part I: CORE PYTHON

      • Part I : Core Python

      • Chapter 1 —Welcome to Python!

        • 1. Welcome to Python!

        • What Is Python?

        • History of Python

        • Features of Python

        • Obtaining Python

        • Obtaining Python

        • Installing Python

        • Running Python

        • Python Documentation

        • Comparing Python

        • JPython and Some Nomenclature

        • Exercises

      • Chapter 2 —Getting Started

        • 2. Getting Started

          • Program Output, the print Statement and "Hello World!"

          • Program Input and the raw_input() Built-in Function

          • Comments

          • Operators

          • Variables and Assignment

          • Numbers

          • Strings

          • Lists and Tuples

          • Dictionaries

          • Code Blocks Use Indentation

          • if Statement

          • while Loop

          • for Loop and the range() Built-in Function

          • Files and the open() Built-in Function

          • Errors and Exceptions

          • Functions

          • Classes

          • Modules

          • Exercises

      • Chapter 3 —Syntax and Style

        • 3. Syntax and Style

          • Statements and Syntax

          • Variable Assignment

          • Identifiers

          • Basic Style Guidelines

          • Memory Management

          • First Python Application

          • Exercises

      • Chapter 4 —Python Objects

        • 4. Python Objects

          • Python Objects

          • Standard Types

          • Other Built-in Types

          • Internal Types

          • Standard Type Operators

          • Standard Type Built-in Functions

          • Categorizing the Standard Types

          • Unsupported Types

          • Exercises

      • Chapter 5 —Numbers

        • 5. Numbers

          • Introduction to Numbers

          • Integers

          • Floating Point Real Numbers

          • Complex Numbers

          • Operators

          • Built-in Functions

          • Related Modules

          • Exercises

      • Chapter 6 —Sequences: Strings, Lists, and Tuples

        • 6. Sequences: Strings, Lists, and Tuples

          • Sequences

          • Strings

          • Strings and Operators

          • String-only Operators

          • Built-in Functions

          • String Built-in Methods

          • Special Features of Strings

          • Related Modules

          • Summary of String Highlights

          • Lists

          • Operators

          • Built-in Functions

          • List Type Built-in Methods

          • Special Features of Lists

          • Tuples

          • Tuple Operators and Built-in Functions

          • Special Features of Tuples

          • Related Modules

          • *Shallow and Deep Copies

          • Exercises

      • Chapter 7 —Dictionaries

        • 7. Dictionaries

          • Introduction to Dictionaries

          • Operators

          • Built-in Functions

          • Built-in Methods

          • Dictionary Keys

          • Exercises

      • Chapter 8 —Conditionals and Loops

        • 8. Conditionals and Loops

          • if statement

          • else Statement

          • elif (a.k.a. else-if ) Statement

          • while Statement

          • for Statement

          • break Statement

          • continue Statement

          • pass Statement

          • else Statement… Take Two

          • Exercises

      • Chapter 9 —Files and Input/Output

        • 9. Files and Input/Output

          • File Objects

          • File Built-in Function [ open() ]

          • File Built-in Methods

          • File Built-in Attributes

          • Standard Files

          • Command-line Arguments

          • File System

          • File Execution

          • Persistent Storage Modules

          • Related Modules

          • Exercises

      • Chapter 10 —Errors and Exceptions

        • 10. Errors And Exceptions

          • What Are Exceptions?

          • Exceptions in Python

          • Detecting and Handling Exceptions

          • *Exceptions as Strings

          • *Exceptions as Classes

          • Raising Exceptions

          • Assertions

          • Standard Exceptions

          • *Creating Exceptions

          • Why Exceptions (Now)?

          • Why Exceptions at All?

          • Exceptions and the sys Module

          • Related Modules

          • Exercises

      • Chapter 11 —Functions

        • 11. Functions

          • What Are Functions?

          • Calling Functions

          • Creating Functions

          • Passing Functions

          • Formal Arguments

          • Positional Arguments

          • Default Arguments

          • Why Default Arguments?

          • Default Function Object Argument Example

          • Variable-length Arguments

          • Non-keyword Variable Arguments (Tuple)

          • Keyword Variable Arguments (Dictionary)

          • Calling Functions with Variable Argument Objects

          • Functional Programming

          • Anonymous Functions and lambda

          • Built-in Functions: apply(), filter(), map(), reduce()

          • * apply()

          • Lines 1 - 4

          • Lines 6 - 7

          • Lines 9 - 28

          • Lines 30-41

          • filter()

          • map()

          • reduce()

          • Variable Scope

          • *Recursion

          • Exercises

      • Chapter 12 —Modules

        • 12. Modules

          • What are Modules?

          • Modules and Files

          • Namespaces

          • Importing Modules

          • Importing Module Attributes

          • Module Built-in Functions

          • Packages

          • Other Features of Modules

          • Exercises

      • Chapter 13 —Classes and OOP

        • 13. Classes and OOP

          • Introduction

          • Object-oriented Programming

          • Classes

          • Class Attributes

          • Instances

          • Instance Attributes

          • Binding and Method Invocation

          • Composition

          • Subclassing and Derivation

          • Inheritance

          • Built-in Functions for Classes, Instances, and Other Objects

          • Type vs. Classes/Instances

          • Customizing Classes with Special Methods

          • Privacy

          • Delegation

          • Related Modules and Documentation

          • Exercises

      • Chapter 14 —Execution Environment

        • 14. Execution Environment

          • Callable Objects

          • Code Objects

          • Executable Object Statements and Built-in Functions

          • Executing Other (Python) Programs

          • Executing Other (Non-Python) Programs

          • Restricted Execution

          • Terminating Execution

          • Related Modules

          • Exercises

    • Part II : Advanced Topics

      • II: Advanced Topics

      • Chapter 15 —Regular Expressions

        • 15. Regular Expressions

          • Introduction/Motivation

          • Special Symbols and Characters for REs

          • REs and Python

          • Regular Expression Adventures

          • Exercises

      • Chapter 16 —Network Programming with Sockets

        • 16. Network Programming

          • Introduction

          • Sockets: Communication Endpoints

          • Network Programming in Python

          • Related Modules

          • Exercises

      • Chapter 17 —Multithreaded Programming

        • 17. Multithreaded Programming

          • Introduction/Motivation

          • Threads and Processes

          • Threads and Python

          • thread Module

          • threading Module

          • Exercises

      • Chapter 18 —GUI Programming with Tkinter

        • 18. GUI Programming with Tkinter

          • Introduction

          • Tkinter and Python Programming

          • Tkinter Examples

          • Related Modules and Other GUIs

          • Exercises

      • Chapter 19 —Web Programming

        • 19. Web Programming

          • Introduction

          • Web Surfing with Python: Creating Simple Web Clients

          • Advanced Web Clients

          • CGI: Helping Web Servers Process Client Data

          • Building CGI Application

          • Advanced CGI

          • Web (HTTP) Servers

          • Related Modules

          • Exercises

      • Chapter 20 —Extending Python

        • 20. Extending Python

          • Introduction/Motivation

          • Related Topics

          • Exercises

    • Appendix A.

      • Answers to Selected Exercises

    • Appendix B.

      • Other Reading and References

      • Other Printed References

      • Online References

    • Appendix C.

      • Python Operator Summary

    • Appendix D.

      • What's New in Python 2.0?

    • Core Python Programming - catalog information

Nội dung

Programming > Core Python Programming See All Titles Core Python Programming Wesley J Chun Publisher: Prentice Hall PTR First Edition December 14, 2000 ISBN: 0-13-026036-3, 816 pages Buy Print Version Front Matter Table of Contents About the Author Examples ● New to Python? This is the developer's guide to Python development! ● Learn the core features of Python as well as advanced topics such as regular expressions, multithreaded programming, Web/Internet and network development, GUI development with Tk(inter) and more ● Also includes features found in the new Python 1.6 and 2.0 releases ● CD-ROM: Complete Python distributions (source code, documentation, and various binaries) plus all example scripts in the book Python is an Internet and systems programming language that is soaring in popularity in today's fast-paced software development environment, and no wonder: it's simple (yet robust), object-oriented (yet can be used as a procedural language), extensible, scalable and features an easy to learn syntax that is clear and concise Python combines the power of a compiled object language like Java and C++ with the ease of use and rapid development time of a scripting language In fact, its syntax is so easy to understand that you are more likely to pick it up faster than any of the other popular scripting languages in use today! In Core Python Programming, Internet software engineer and technical trainer Wesley Chun provides intermediate and experienced developers all they need to know to learn Python-fast Like all Core Series books, Core Python Programming delivers hundreds of industrial-strength code snippets and examples, all targeted at professional developers who want to leverage their existing skills! In particular, Core Python Programming presents numerous interactive examples that can be entered into the Python interpreter right in front of you! Finally, we present a chapter that shows you step-by-step how to extend Python using C or C++ ● Python syntax and style ● Development and Run-time Environments ● Objects and Python memory management ● Standard data types, methods, and operators ● Loops and conditionals ● Files and Input/Output ● Exceptions and error handling ● Functions, scope, arguments, and functional programming ● Importing modules and module attributes ● Object-oriented Programming with classes, methods, and instances ● Callable Objects ● Extending Python Coverage of the Python standard module library and client-server application development includes comprehensive introductions to the following topics in Python programming: ● Regular expressions ● TCP/IP and UDP/IP Network programming using sockets ● Operating system interface ● GUI development with Tk using Tkinter ● Multithreaded programming ● Interactive Web/CGI/Internet applications ● Executing code in a restricted environment ● Inheritance, type emulation, operator overloading, and delegation in an OOP environment Finally, we provide an introduction to the new features introduced in Python 1.6 These include Unicode string support, the new function invocation syntax which lets the caller provide a tuple of positional arguments and/or a dictionary of keyword arguments, and the new string methods We also provide a glimpse into features that will only be found in the newer 2.0 release Every Core Series book: ● DEMONSTRATES how to write commercial-quality code ● FEATURES dozens of programs and examples! ● FOCUSES on the features and functions most important to real developers ● PROVIDES objective, unbiased coverage of cutting-edge technologies-no ● hype! Core Python Programming delivers: ● Coverage of the core parts of the Python language ● Real-world insights for developing Web/Internet, network, multithreaded and GUI applications ● Tables and charts detailing Python modules, built-in functions, operators, and attributes ● Code snippets to try live with Python's interactive interpreter, hammering the concepts home ● Extensive code examples-including several complete sample applications CD-ROM includes complete Python source code and documentation distributions for Unix/Linux along with binaries for Windows and Macintosh platforms plus source code for all examples in the book Last updated on 9/14/2001 Core Python Programming, © 2002 Prentice Hall PTR © 2002, O'Reilly & Associates, Inc Programming > Core Python Programming > Welcome to Python! Make Note | Bookmark 156135250194107072078175030179198180024228156016206217188240241051211042040087237072065031 See All Titles CONTINUE > Welcome to Python! Welcome to the wonderful world of Python! As a professional or student with working knowledge of another high-level programming language, this text was made for you in your efforts to jump straight into Python with as little overhead as possible The goal of this book is to provide text that flows in a conversational style littered with examples to highlight your path towards Python programming At the time of publication, Python 2.0 was just released, so you will definitely have the latest and greatest The supplementary CD-ROM has the three most recent versions of Python: 1.5.2, 1.6, and 2.0, not to mention the most recent release of the Java version of the Python interpreter, JPython (a.k.a Jython) Last updated on 9/14/2001 Core Python Programming, © 2002 Prentice Hall PTR Make Note | Bookmark © 2002, O'Reilly & Associates, Inc CONTINUE > Programming > Core Python Programming. .. 9/14/2001 Core Python Programming, © 2002 Prentice Hall PTR < BACK Make Note | Bookmark © 2002, O'Reilly & Associates, Inc CONTINUE > Programming > Core Python Programming > Welcome to Python!

Ngày đăng: 13/04/2019, 01:38