Record -python learning self-taught -01

  The examples in this book python3 basis for comparison, had intended to exercise while watching it again or leave it. But then I realized that someone else's brain is made of meat, I mind seems to be doing a sieve, sieve can only live in the fresh air of freedom and knowledge powerless. . . So remember a note or necessary. Because it is the second time, the main objective is to consolidate and improve the knowledge structure, so it will not deal with specific details, only going to send some of the concepts and ideas (yes very boring).

    

book structure

The first part: python Introduction to Programming.
Part II: Introduction to Object-Oriented Programming. This section describes the different programming paradigms, focuses on object-oriented programming.
Part III: Introduction to Programming tool. We describe the different programming tools to enhance productivity.
Part IV: Introduction to Computer Science. A brief overview of computer science, covering two main themes - algorithms and data structures.
Part V: find a job. After a section on good programming practice, how to find a job software engineer, self-improvement and teamwork programmers.

Note: The Chinese version of the book less than some of the content in English

Part1 Explanation of Python terms

Keywords: programming language word has a special significance. Python can view all of the keywords in http://theselftaughtprogrammer.io/keywords page. 

Data Type: category data belongs.

Object: Python has three attribute values ​​of the data - unique identification, data type and value.

Str: string data type.

Character: l or the like a single symbol. Int: integer data type.

Integer Data: is int object whose value is an integer.

Float: decimal data type.

Float: as a float of the object, which is a decimal.

Bool: Boolean data type object.

Boolean: bool data type of the object, whose value is True or False.

NoneType: None data type object.

None: Data object of type NoneType, and its value is always None.

Constant: The value will not change.

Variables: using the assignment operator gives a value of the name.

Assignment operator: Python the = sign. 

Syntax: a specification language sentence structure, in particular a set of rules and word order of processes.

Syntax error: syntax violation programming languages, programming error caused fatal.

Exception: Non-fatal programming errors.

Operators: The symbols used in conjunction with the operator in the expression.

Arithmetic operators: an operator of the class used in the mathematical expression.

Operands: value operators on both sides.

Expression: operator and two operands configuration code.

Sequence of operations: a set of mathematical calculations to evaluate the expression of rules.

Comparison operators: used in an expression for a Class operator evaluates to True or False.

Logical operators: two expression evaluation of a class of operator evaluates to True or False.

Conditional statement: execute code of different code depending on the conditions.

Control structure: the analysis value of the variable to determine how the code block is executed.

Pseudo-code: The method used to mark the presentation logic, similar to the code.

if-else statement: programmers used to express "If this is the case, then do so, otherwise do that" approach.

Statement: a command or calculations.

Simple statement: a line of code available statements expressed.

Compound statements: statements often include multiple lines of code. Clauses: part of the compound statement; a clause composed of two or more lines of code, the code includes a code and supporting head. 

Code Head: clause contained in that line of code keyword, followed by a colon and indentation with one or more lines of code.

Supporting Code: Code clause head controlled by the code.

Function: accept input and executes the command and returns the output of the compound statement.

Practices: generally accepted behavior.

Call: providing instruction to execute the function returns the desired output input.

Parameters: Data passed to the function.

Required parameters: Argument not optional.

Optional parameters: the argument is not to offer.

Built-in functions: Python comes with a function.

Scope: the variables can be read range.

Global Scope: Scope can read and write variables anywhere in the program.

Global variables: variables have global scope.

The local scope: the scope of the function can read and write (or class) which defines where the variables.
Exception handling: a programming concepts, required to detect an error condition. If the accord is to catch the exception and decide how to proceed.

Document string: function interpretation function, a string parameter type recorded

Methods: The function is closely related to the specified data type.

List: A container for storing ordered objects.

Iteration may be: if each element may be used to iterate object, the object is iterative.

Iterables: objects can be iterative, such as strings, lists, and elements.

Index: represents a number of elements in the position of the object can be iterative.

Variable: content container may vary.

Immutable: the contents of the container can not be changed.

Dictionary: a built storage container object, the object will be referred to as a key mapped to a target value called.

Key: used to find the value corresponding to the dictionary.

Value: a dictionary mapping key to value.

Map: link one object to another object.

Key-value pairs: a dictionary mapping key to value.

Negative index: the index can be used to find the right elements in iterable left (must be a negative number).

Escape: characters have special significance in Python (e.g. double) before adding a symbol, a character just tells Python representative of the character in the present embodiment, there is no special meaning.

Slice: iteration will be a subset of target elements to create a new iterable.

The starting index: the index began to slice.

End Index: End index slices.

Cycle: before the condition defined in the code are not satisfied, will continue for some code execution.

Iterate: iterate using each element in the iterable.

for loop: iteration to iteration can be an endless string objects, lists, or the like tuples dictionary.

Index variable: the variable value representative of a digital object may iteration index. 

while loop: an endless as long as the expression evaluates to True continued to perform.

Infinite loop: the loop will never terminate.

The break statement: keyword break with the statement to terminate the loop.

continue statement: keywords continue with the statement to terminate the current iteration of the loop, and into the next iteration.

Outer loop: the internal loop comprising nested loops.

Inner loop: nested loop in another cycle. 

Module: Python file containing the code of another name.

Built-in modules: Python language comes with modules, including many important functions.

Import: write code that tells where to import Python modules you plan to use. 

Read: access to the contents of the file.

Write: add or modify data in the file.

File Path: file location stored in the computer.

with the statement: A complex statement, when Python exits a statement it will operate automatically.

File object: the object can be used to read and write files.

CSV file: suffix .csv file, a comma-separated data (CSV represented comma separated value). Commonly used in program management report.

Separator: CSV file is used to separate the data symbols, such as commas. 

 

 

Part2 Noteworthy thought

 "King of the trip" the protagonist of the movie Josh (Josh Waitzkin), in "learning the art of" book recalls how he reverse learning chess. He did not start to study like everyone else, but from learning chess pieces (only a few pieces on the board) start. Doing so gave him a deeper understanding of chess, and won the championship many times. Similarly, I think first and then learn how to program learning theory method is more efficient, because you understand the principle behind the strong drive. This is why the book was introduced until the fifth part of computer science theory, but the content is as concise as possible. While theory is important, but after you have programming experience, theory of value was greater.

  "Most good programmers worked as a programmer, not because the public expect to get paid or get praise, but because programming is a fun thing." - Linus Torvalds (Linus Torvalds) 

  ps: the layout is bad, too lazy to learn, is so wayward, please forgive me.

  

Guess you like

Origin www.cnblogs.com/HLJU-13199465680-BeachBreezes/p/11323542.html