详细书目
| 文件类型: | 书 |
|---|---|
| 所有的著者/提供者: |
Mark Lutz |
| ISBN: | 0596009259 9780596009250 |
| OCLC号码: | 65765375 |
| 注意: | Includes index. |
| 描述: | xlii, 1551 p. : ill. ; 24 cm. |
| 内容: | Part I The Beginning -- 1 Introducing Python 3 -- "And Now for Something Completely Different" 3 -- Python Philosophy 101 3 -- The Life of Python 8 -- Signs of the Python Times 9 -- The Compulsory Features List 15 -- What's Python Good For? 17 -- What's Python Not Good For? 20 -- Truth in Advertising 22 -- 2 A Sneak Preview 24 -- "Programming Python: The Short Story" 24 -- The Task 24 -- Step 1 Representing Records 25 -- Step 2 Storing Records Persistently 35 -- Step 3 Stepping Up to OOP 47 -- Step 4 Adding Console Interaction 57 -- Step 5 Adding a GUI 60 -- Step 6 Adding a Web Interface 70 -- The End of the Demo 86 -- Part II System Programming -- 3 System Tools 89 -- "The os.path to Knowledge" 89 -- System Scripting Overview 90 -- Introducing the sys Module 100 -- Introducing the os Module 104 -- Script Execution Context 113 -- Current Working Directory 114 -- Command-Line Arguments 117 -- Shell Environment Variables 119 -- Standard Streams 123 -- 4 File and Directory Tools 142 -- "Erase Your Hard Drive in Five Easy Steps!" 142 -- File Tools 142 -- Directory Tools 159 -- 5 Parallel System Tools 175 -- "Telling the Monkeys What to Do" 175 -- Forking Processes 176 -- Threads 183 -- Program Exits 201 -- Interprocess Communication 208 -- Pipes 209 -- Signals 218 -- Other Ways to Start Programs 221 -- A Portable Program-Launch Framework 230 -- Other System Tools 235 -- 6 System Examples: Utilities 236 -- "Splits and Joins and Alien Invasions" 236 -- Splitting and Joining Files 237 -- Generating Forward-Link Web Pages 247 -- A Regression Test Script 251 -- Packing and Unpacking Files 254 -- Automated Program Launchers 265 -- 7 System Examples: Directories 294 -- "The Greps of Wrath" 294 -- Fixing DOS Line Ends 294 -- Fixing DOS Filenames 307 -- Searching Directory Trees 311 -- Visitor: Walking Trees Generically 317 -- Copying Directory Trees 339 -- Deleting Directory Trees 345 -- Comparing Directory Trees 349 -- Part III GUI Programming -- 8 Graphical User Interfaces 365 -- "Here's Looking at You, Kid" 365 -- Python GUI Development Options 367 -- Tkinter Overview 371 -- Climbing the GUI Learning Curve 375 -- Tkinter Coding Basics 377 -- Tkinter Coding Alternatives 380 -- Adding Buttons and Callbacks 386 -- Adding User-Defined Callback Handlers 389 -- Adding Multiple Widgets 401 -- Customizing Widgets with Classes 406 -- Reusable GUI Components with Classes 408 -- The End of the Tutorial 414 -- Python/Tkinter for Tcl/Tk Converts 416 -- 9 A Tkinter Tour, Part 1 418 -- "Widgets and Gadgets and GUIs, Oh My!" 418 -- Configuring Widget Appearance 419 -- Top-Level Windows 422 -- Dialogs 427 -- Binding Events 443 -- Message and Entry 448 -- Checkbutton, Radiobutton, and Scale 456 -- Running GUI Code Three Ways 468 -- Images 478 -- Viewing and Processing Images with PIL 483 -- 10 A Tkinter Tour, Part 2 499 -- "On Today's Menu: Spam, Spam, and Spam" 499 -- Menus 499 -- Listboxes and Scrollbars 511 -- Text 517 -- Canvas 529 -- Grids 543 -- Time Tools, Threads, and Animation 559 -- The End of the Tour 570 -- The PyDemos and PyGadgets Launchers 571 -- 11 GUI Coding Techniques 583 -- "Building a Better Mouse Trap" 583 -- GuiMixin: Common Tool Mixin Classes 584 -- GuiMaker: Automating Menus and Toolbars 586 -- ShellGui: GUIs for Command-Line Tools 597 -- GuiStreams: Redirecting Streams to Widgets 605 -- Reloading Callback Handlers Dynamically 609 -- Wrapping Up Top-Level Window Interfaces 611 -- GUIs, Threads, and Queues 616 -- More Ways to Add GUIs to Non-GUI Code 624 -- 12 Complete GUI Programs 636 -- "Python, Open Source, and Camaros" 636 -- PyEdit: A Text Editor Program/Object 638 -- PyPhoto: An Image Viewer and Resizer 657 -- PyView: An Image and Notes Slideshow 668 -- PyDraw: Painting and Moving Graphics 676 -- PyClock: An Analog/Digital Clock Widget 685 -- PyToe: A Tic-Tac-Toe Game Widget 700 -- Where to Go from Here 704 -- Part IV Internet Programming -- 13 Network Scripting 709 -- "Tune In, Log On, and Drop Out" 709 -- Plumbing the Internet 713 -- Socket Programming 720 -- Handling Multiple Clients 732 -- A Simple Python File Server 753 -- 14 Client-Side Scripting 766 -- "Socket to Me!" 766 -- FTP: Transferring Files over the Net 767 -- Processing Internet Email 808 -- POP: Fetching Email 809 -- SMTP: Sending Email 817 -- email: Parsing and Composing Mails 826 -- pymail: A Console-Based Email Client 831 -- The mailtools Utility Package 839 -- NNTP: Accessing Newsgroups 862 -- HTTP: Accessing Web Sites 866 -- Module urllib Revisited 869 -- Other Client-Side Scripting Options 874 -- 15 The PyMailGUI Client 876 -- "Use the Source, Luke" 876 -- A PyMailGUI Demo 883 -- PyMailGUI Implementation 911 -- 16 Server-Side Scripting 962 -- "Oh What a Tangled Web We Weave" 962 -- What's a Server-Side CGI Script? 962 -- Running Server-Side Examples 966 -- Climbing the CGI Learning Curve 971 -- Saving State Information in CGI Scripts 1011 -- The Hello World Selector 1020 -- Refactoring Code for Maintainability 1029 -- More on HTML and URL Escapes 1038 -- Transferring Files to Clients and Servers 1046 -- 17 The PyMailCGI Server 1063 -- "Things to Do When Visiting Chicago" 1063 -- The PyMailCGI Web Site 1064 -- The Root Page 1070 -- Sending Mail by SMTP 1073 -- Reading POP Email 1080 -- Processing Fetched Mail 1097 -- Utility Modules 1106 -- CGI Script Trade-Offs 1121 -- 18 Advanced Internet Topics 1129 -- "Surfing on the Shoulders of Giants" 1129 -- Zope: A Web Application Framework 1130 -- HTMLgen: Web Pages from Objects 1145 -- Jython: Python for Java 1150 -- Grail: A Python-Based Web Browser 1161 -- XML Processing Tools 1164 -- Windows Web Scripting Extensions 1169 -- Python Server Pages 1186 -- Rolling Your Own Servers in Python 1189 -- And Other Cool Stuff 1190 -- Part V Tools and Techniques -- 19 Databases and Persistence 1197 -- "Give Me an Order of Persistence, but Hold the Pickles" 1197 -- Persistence Options in Python 1197 -- DBM Files 1198 -- Pickled Objects 1201 -- Shelve Files 1207 -- The ZODB Object-Oriented Database 1216 -- SQL Database Interfaces 1227 -- PyForm: A Persistent Object Viewer 1254 -- 20 Data Structures 1280 -- "Roses Are Red, Violets Are Blue; Lists Are Mutable, and So Is Set Foo" 1280 -- Implementing Stacks 1281 -- Implementing Sets 1293 -- Subclassing Built-In Types 1304 -- Binary Search Trees 1307 -- Graph Searching 1312 -- Reversing Sequences 1316 -- Permuting Sequences 1318 -- Sorting Sequences 1320 -- Data Structures Versus Python Built-Ins 1322 -- PyTree: A Generic Tree Object Viewer 1323 -- 21 Text and Language 1336 -- "See Jack Hack. Hack, Jack, Hack" 1336 -- Strategies for Parsing Text in Python 1336 -- String Method Utilities 1337 -- Regular Expression Pattern Matching 1346 -- Advanced Language Tools 1357 -- Handcoded Parsers 1359 -- PyCalc: A Calculator Program/Object 1377 -- Part VI Integration -- 22 Extending Python 1405 -- "I Am Lost at C" 1405 -- Integration Modes 1406 -- C Extensions Overview 1408 -- A Simple C Extension Module 1409 -- Extension Module Details 1412 -- The SWIG Integration Code Generator 1422 -- Wrapping C Environment Calls 1428 -- A C Extension Module String Stack 1434 -- A C Extension Type String Stack 1439 -- Wrapping C++ Classes with SWIG 1451 -- Other Extending Tools 1460 -- 23 Embedding Python 1463 -- "Add Python. Mix Well. Repeat." 1463 -- C Embedding API Overview 1463 -- Basic Embedding Techniques 1466 -- Registering Callback Handler Objects 1478 -- Using Python Classes in C 1483 -- A High-Level Embedding API: ppembed 1486 -- Other Integration Topics 1499 -- 24 Conclusion: Python and the Development Cycle 1507 -- "That's the End of the Book, Now Here's the Meaning of Life" 1507 -- "Something's Wrong with the Way We Program Computers" 1507 -- The "Gilligan Factor" 1508 -- Doing the Right Thing 1509 -- Enter Python 1510 -- But What About That Bottleneck? 1512 -- On Sinking the Titanic 1516 -- So What's "Python: The Sequel"? 1518 -- In the Final Analysis 1519. |
| 责任: | Mark Lutz. |
| 更多信息: |
评论
标签
添加标签 目的是为 "Programming Python".
争取是第一个!
