"0 Basic Python" (second edition)

Source: Internet
Author: User

First quarter basic 0th chapter preparation
    1. The story about Python
    2. From the handyman to the expert
    3. Install the Python development environment
    4. Integrated development Environment ==> integrated development environment; Python IDE
Chapter One basic data types
    1. Numbers and arithmetic ==> integers and floating-point numbers; variables; integer overflow problems;
    2. Division ==> integers, floating-point numbers, from __future__ import Division; remainder; rounding;
    3. Common mathematical functions and operation priority ==>math module, absolute value, operation priority
    4. Write a simple program ==> program and statement, comment
    5. String (1) ==> string definition, escape character, string concatenation, str () differs from repr ()
    6. String (2) ==>raw_input,print, built-in function, raw string, and then a small program
    7. String (3) ==> string and sequence, index, slice, basic operation
    8. String (4) ==> string formatting, commonly used string methods
    9. The basic knowledge of character encoding ==> encoding, avoiding garbled characters in Python
    10. List (1) ==> list definition, index and slice, list reversal, element append, basic operation
    11. List (2) ==> list Append/extend/index/count method, iterative and judging method, list in-situ modification
    12. List (3) ==> list Pop/remove/reverse/sort method
    13. Review lists and strings ==> compare lists and strings for the same point and different points
    14. Tuple ==> tuple definitions and basic operations, using meaning
    15. Dictionaries (1) ==> dictionary creation method, basic operation (length, read value, delete value, determine whether the key exists)
    16. Dictionary (2) ==> dictionary method: Copy/deepcopy/clear/get/setdefault/items/iteritems/keys/iterkeys/values/itervalues/pop/popitem /update/has_key
    17. Collection (1) ==> Create Collection, collection method: Add/update,pop/remove/discard/clear, hash and non-hash
    18. Set (2) ==> immutable set, set relationship
Chapter II Statements and documents
    1. operator ==> arithmetic operator, comparison operator, logical operator/Boolean type
    2. Statement (1) ==>print, import, assignment statement, increment assignment
    3. Statement (2) ==>if...elif...else statement, ternary operation
    4. Statement (3) ==>for Loop, range (), Loop dictionary
    5. Statement (4) ==> parallel iteration: Zip (), enumerate (), list parsing
    6. Statement (5) ==>while Loop, While...else,for...else
    7. Files (1) ==> file Open, read, write
    8. Files (2) ==> file status, read/readline/readlines, large file read, seek
    9. Iterative ==> iteration meaning, iter ()
    10. Practice ==> through four exercises to synthesize the previously learned
    11. Introspection ==> introspection concept, online Help, dir (), document string, check object, document
Chapter III Functions
    1. Functions (1) ==> define function methods, call function methods, name methods, use function considerations
    2. Function (2) ==> function return value, function document, formal parameter and argument, namespace, global variable and local variable
    3. Function (3) ==> Collect parameters: * and * *, and its inverse process, review parameter knowledge
    4. Function (4) ==> recursion and filter, map, reduce, lambda, yield
    5. function Practice ==> solve one-yuan two-time equations, statistical test scores, find prime numbers
Second quarter advanced Chapter class
    1. Class (1) Preliminary understanding and basic conceptual understanding of the ==> class: Problem space, object, object-oriented, class, and instantiation classes
    2. Class (2) ==> new and old classes, naming, constructors, instantiations and methods and properties of the class, the role of self
    3. Class (3) ==> class properties and instance properties, intra-and outside-class data flow, namespaces, scopes
    4. Class (4) ==> inheritance, multiple inheritance, super function
    5. Class (5) ==> static methods and class methods, the differences between the classes, the document
    6. Polymorphic and encapsulated ==> polymorphism, encapsulation and privatization
    7. Special methods (1) ==>__dict__ and __slots__
    8. Special Method (2) ==>__getattr__,__setattr__ and find attribute order
    9. Iterator ==> iterator Method __iter__,netx ()
    10. Generator ==> generator definition, yield, generator method
Section Wu Zhang Errors and exceptions
    1. Errors and exceptions (1) ==> What are errors and exceptions, common exception types, handling exceptions (Try...except ...)
    2. Errors and exceptions (2) ==> handles multiple exceptions, else clauses, finally clauses
    3. Errors and Exceptions (3) ==>assert Assertion, Exception summary
Section Luzhang Module
    1. Write Module ==> module is the program, the location of the module
    2. Standard library (1) ==> reference module, dir () view properties and methods, module documentation and help
    3. Standard library (2) ==>sys,copy
    4. Standard library (3) ==>os module: Manipulate files, directories, view modify properties, execute system commands, open Web pages
    5. Standard library (4) basic knowledge of ==> heap, HEAPQ module, deque module
    6. Standard library (5) ==>calendar module, Time module, datetime module
    7. Standard library (6) ==>urllib module, URLLIB2 module
    8. Standard library (7) ==>xml.etree.elementtree module: Traversal query, add and revise XML, application example
    9. Standard library (8) ==>json module: Dumps (), loads (), dump (), load (), JSON encoding and decoding of the custom type data
    10. Third party library ==> module installation method of third-party library, taking requests module as an example to illustrate
Chapter VII Saving data
    1. Depositing data into a file ==>pickle module, shelve module
    2. MySQL database (1) ==>mysql overview, installation, Python connect MySQL modules and methods
    3. MySQL Database (2) ==> Connection object method, Cursor object method: Database additions and deletions to change the basic operation
    4. MongoDB database ==>mongodb installation Start, Pymongo module: Connection client, database additions and deletions to change the operation
    5. SQLite database ==> operation of SQLite database via Sqlite3 module: Connection object method, cursor object method, database additions and deletions
    6. Spreadsheet ==>python third-party libraries that manipulate Excel files OPENPYXL usage, and other third-party libraries related to excel
Third quarter combat
    1. Cited
Chapter BA making a website with tornado
    1. Prepare ==> Development Framework for Web site, Python's common web framework, Tornado framework Introduction and Installation
    2. Analyze hello==> Publish Tornado website, and analyze the basic structure
    3. Make a website with Tornado (1) The basic structure of the ==> website, a website shelf based on the Tornado framework
    4. Make website with tornado (2) ==> front-end template, static file introduction
    5. Make a website with Tornado (3) ==>ajax transfer data, get_argument () receive data, verify user name and password
    6. Make website with tornado (4) ==>render () method used, template syntax, escaped (auto-escaped, not escaped)
    7. Make a website with Tornado (5) ==> template inheritance and block statements, CSS files, cookies, and xsrf security protection methods
    8. Make a website with Tornado (6) ==> user authentication
    9. Make a website with tornado (7) ==> Concepts: synchronous and asynchronous, blocking and non-blocking, Tornado synchronization, Tornado asynchronous Setup, asynchronous in practice
Part V: Scientific Calculations attached: Network abstracts
    1. How to become a python master
    2. Differences between ASCII, Unicode, GBK, and UTF-8 character encodings

"0 Basic Python" (second edition)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.