⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 《Beginning Python--From Novice to Professional》 的源码
💻 TXT
字号:
This is the source code for Beginning Python : From Novice to Professional,second edition. Each code listing in the book can be found in a correspondinglynumbered directory/file. In order to work properly together, some of thesemay need to be renamed (as indicated by the book).Chapter02/listing2-1.py: Indexing ExampleChapter02/listing2-2.py: Slicing ExampleChapter02/listing2-3.py: Sequence (String) Multiplication ExampleChapter02/listing2-4.py: Sequence Membership ExampleChapter03/listing3-1.py: String Formatting ExampleChapter04/listing4-1.py: Dictionary ExampleChapter04/listing4-2.py: Dictionary Method ExampleChapter10/listing10-1.py: A Simple ModuleChapter10/listing10-2.py: A Simple Module Containing a FunctionChapter10/listing10-3.py: A Simple Module with Some Problematic Test CodeChapter10/listing10-4.py: A Module with Conditional Test CodeChapter10/listing10-5.py: Reversing and Printing Command-Line ArgumentsChapter10/listing10-6.py: Adding Line Numbers to a Python ScriptChapter10/listing10-7.py: The Line Numbering Program with Line Numbers AddedChapter10/listing10-8.py: A Simple Database ApplicationChapter10/listing10-10.py: A Program for Finding the Sender of an E-mailChapter10/listing10-11.py: A Template SystemChapter10/listing10-12.txt: A Simple Template ExampleChapter10/listing10-13.txt: Some Template DefinitionsChapter10/listing10-14.txt: A TemplateChapter11/listing11-1.py: Simple Script That Counts the Words in sys.stdinChapter11/listing11-2.txt: A File Containing Some Nonsensical TextChapter11/listing11-3.txt: A Simple Text FileChapter11/listing11-4.txt: The Modified Text FileChapter11/listing11-5.txt: The Text File, Modified AgainChapter11/listing11-6.py: Looping over Characters with readChapter11/listing11-7.py: Writing the Loop DifferentlyChapter11/listing11-8.py: Using readline in a while LoopChapter11/listing11-9.py: Iterating over Characters with readChapter11/listing11-10.py: Iterating over Lines with readlinesChapter11/listing11-11.py: Iterating over Lines with fileinputChapter11/listing11-12.py: Iterating over a FileChapter11/listing11-13.py: Iterating over a File Without Storing the File Object in a VariableChapter12/listing12-1.py: Creating and Showing a FrameChapter12/listing12-2.py: Adding a Button to a FrameChapter12/listing12-3.py: Adding Labels and Titles with Keyword ArgumentsChapter12/listing12-4.py: Setting Button PositionsChapter12/listing12-5.py: Using a SizerChapter12/listing12-6.py: The Final GUI ProgramChapter13/listing13-1.py: Importing Data into the Database (importdata.py)Chapter13/listing13-2.py: Food Database Query Program (food_query.py)Chapter14/listing14-1.py: A Minimal ServerChapter14/listing14-2.py: A Minimal ClientChapter14/listing14-3.py: A SocketServer-Based Minimal ServerChapter14/listing14-4.py: A Forking ServerChapter14/listing14-5.py: A Threading ServerChapter14/listing14-6.py: A Simple Server Using selectChapter14/listing14-7.py: A Simple Server Using pollChapter14/listing14-8.py: A Simple Server Using TwistedChapter14/listing14-9.py: An Improved Logging Server, Using the LineReceiver ProtocolChapter15/listing15-1.py: A Simple Screen Scraping ProgramChapter15/listing15-2.py: A Screen Scraping Program Using the HTMLParser ModuleChapter15/listing15-3.py: A Screen Scraping Program Using Beautiful SoupChapter15/listing15-4.py: A Simple CGI ScriptChapter15/listing15-5.py: A CGI Script That Invokes a Traceback (faulty.cgi)Chapter15/listing15-6.py: A CGI Script That Retrieves a Single Value from a FieldStorage (simple2.cgi)Chapter15/listing15-7.py: A Greeting Script with an HTML Form (simple3.cgi)Chapter15/listing15-8.psp: A Slightly Stochastic PSP ExampleChapter15/listing15-9.py: Simple Authentication with the mod_python PublisherChapter15/listing15-1.py: A Simple Screen Scraping ProgramChapter16/listing16-1.py: A Simple Test ProgramChapter16/listing16-2.py: A Simple Test Using the unittest FrameworkChapter16/listing16-3.py: Calling External Checkers Using the subprocess ModuleChapter17/listing17-1.java: A Simple Java Class (JythonTest.java)Chapter17/listing17-2.cs: A Simple C# Class (IronPythonTest.cs)Chapter17/listing17-3.c: A Simple C Function for Detecting a Palindrome (palindrome.c)Chapter17/listing17-4.py: Detecting Palindromes in PythonChapter17/listing17-5.i: Interface to the Palindrome Library (palindrome.i)Chapter17/listing17-6.c: Palindrome Checking Again (palindrome2.c)Chapter18/listing18-1.py: Simple Distutils Setup Script (setup.py)Chapter19/listing19-1.cfg: A Simple Configuration FileChapter19/listing19-2.py: A Program Using ConfigParserChapter19/listing19-3.py: A Program Using the logging ModuleChapter20/listing20-1.txt: A Sample Plain-Text Document (test_input.txt)Chapter20/listing20-2.py: A Text Block Generator (util.py)Chapter20/listing20-3.py: A Simple Markup Program (simple_markup.py)Chapter20/listing20-4.py: The Handlers (handlers.py)Chapter20/listing20-5.py: The Rules (rules.py)Chapter20/listing20-6.py: The Main Program (markup.py)Chapter21/listing21-1.py: A Simple ReportLab Program (hello_report.py)Chapter21/listing21-2.py: The First Prototype for the Sunspot Graph Program (sunspots_proto.py)Chapter21/listing21-3.py: The Final Sunspot Program (sunspots.py)Chapter22/listing22-1.xml: A Simple Web Site Represented As an XML File (website.xml)Chapter22/listing22-2.py: A Simple Page Maker Script (pagemaker.py)Chapter22/listing22-3.py: The Web Site Constructor (website.py)Chapter23/listing23-1.py: A Simple News-Gathering Agent (newsagent1.py)Chapter23/listing23-2.py: A More Flexible News-Gathering Agent (newsagent2.py)Chapter24/listing24-1.py: A Minimal Server ProgramChapter24/listing24-2.py: A Server That Accepts ConnectionsChapter24/listing24-3.py: The Basic Server with Some CleanupsChapter24/listing24-4.py: Server Program with ChatSession ClassChapter24/listing24-5.py: A Simple Chat Server (simple_chat.py)Chapter24/listing24-6.py: A Slightly More Complicated Chat Server (chatserver.py)Chapter25/listing25-1.py: A Simple Web Editor (simple_edit.cgi)Chapter25/listing25-2.py: The Editor Script (edit.cgi)Chapter25/listing25-3.py: The Saving Script (save.cgi)Chapter26/listing26-1.sql: Creating the Database in PostgreSQLChapter26/listing26-2.sql: Creating the Database in MySQLChapter26/listing26-3.sql: Creating the Database in SQLiteChapter26/listing26-4.py: The Main Bulletin Board (simple_main.cgi)Chapter26/listing26-5.py: The Main Bulletin Board (main.cgi)Chapter26/listing26-6.py: The Message Viewer (view.cgi)Chapter26/listing26-7.py: The Message Editor (edit.cgi)Chapter26/listing26-8.py: The Save Script (save.cgi)Chapter27/listing27-1.py: A Simple Node Implementation (simple_node.py)Chapter27/listing27-2.py: A New Node Implementation (server.py)Chapter27/listing27-3.py: A Node Controller Interface (client.py)Chapter28/listing28-1.py: A Simple GUI Client (simple_guiclient.py)Chapter28/listing28-2.py: The Finished GUI Client (guiclient.py)Chapter29/listing29-1.py: A Simple “Falling Weights” Animation (weights.py)Chapter29/listing29-2.py: The Squish Configuration File (config.py)Chapter29/listing29-4.py: The Main Game Module (squish.py)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -