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