程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

How to learn Python basics in 5 days?Knowledge points of five stages of Python basics

編輯:Python

Presumably many friends who are learning Python have been unable to do anything. Once they learn it, they will lose it when they get started.

That's because you didn't have a direction when you were studying.

So, in a day's time, I have listed all the knowledge points to be learned in the basics of Python for you in order.

Friends who are not good at basic learning or who are just starting to learn Python can take a good look at it

Directory

Python data types (first stage)

Programming Specification

Numeric type

Character Type

Operator

Python Flow Control (Phase II)

Order structure

Branch structure

Branch structure

while loop

for traversal

Break statement

Python Symbolic Data Container (Phase 3)

List

tuple

Dictionary

Collection

Data container conversion

Python Functions (Phase 4)

Simple function

The function of the function

Parameters of the function

Anonymous function

Python Basic Case (Phase 5)

File operations

Student Information Management System

Light and dark copy

Python common exceptions and their handling methods


Python Data Types (Phase 1)
Programming Specifications
Comments

Indent

naming rules

Enter function

Output function

Variable-keyword

expression

Numeric type
int type

float type

bool type

Conversion of numeric type

Character type
Three ways to create strings

Formatting

Advanced methods for strings

Operators
Arithmetic Operators

Assignment operator

Comparison operator

Logical operators

Python flow control (second stage)
Sequence structure
Branch structure
Single branch

Multi-branch

Branch structure
f judgment

if multi-condition judgment

if nested judgment

while loop
while simple loop

while infinite loop

for traverse
for traverse iterable

range generates iterable pairs

Break statement
break interrupt subsequent code

continue blocks this run

Expanding knowledge points: ternary expressions

Python symbolic data container (third stage)
List
List creation and transformation

List values

List slices

Advanced methods for lists

tuple
tuple creation and transformation

tuple value and slice a list and tuple comparison

Dictionary
Dictionary Definition and Modification

Dictionary specifies key value and modification

Advanced methods for dictionaries

Collection
Collection deduplication

Set operation

Data container conversion


Python Functions (Phase 4)
Simple Functions
Declare Functions

Call function

wrapper function

The function of the function
The parameter of the function is variable

The return value of the function

Four expressions of functions

Function parameters
Positional parameters

Keyword arguments

Default parameters

Parameters of indeterminate length

Anonymous function


Python Basic Case (Phase 5)
File Operations
Open to operate local files

Modes of file operations

The encoding of the file read

Using with is more convenient to manipulate files

Student Information Management System
Management System Main Loop

Add student information

Query student information

Delete student information

Modify student information

Save student information to file

Deep and Shallow Copy
Object Reference: Data is fully shared

Shallow copy: data half sharing

Deep copy: data is not shared at all

Python common exceptions and their handling methods
NameError variable name error

SyntaxError syntax error

IndexError Index Error

KeyError key error

AttributeError attribute error

Almost forgot to install Python's interpreter and compiler (zero stage)

Friends who read it, I also have the knowledge point circuit diagram of Python crawler development, data analysis, and full stack development here


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved