Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the basic knowledge points of Python rookies?

Shulou Source: shulou.com Published: 2022-06-01 18:38:46 09月20日 Update

This article mainly explains "what are the basic knowledge points of Python rookies?" interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what are the basic knowledge points of Python rookies?"

Data type:

There are eight basic data types in python

Int integer

Float: floating point

Str: string

Bool: Boolean

List: list

Tuple: Yuanzu

Set: collection

Dict: dictionary

Among these types, the five types of int,str,bool,list,dict should be learned well first, and the others can be learned first.

There are some keywords in python, but you don't have to learn them. Here's what you need to learn.

For: loop statement: learn this first is enough, the rest is not needed

If else: conditional judgment. There are a large number of conditional judgments in every program.

Try except: exception thrown, which is not used much, but if there is a problem, it will be used.

Def: it's OK to create functions without def, but in some frameworks, most interfaces are implemented using def creation functions

Class: the learning priority is lower than def, and it is still used more in web.

None: null, this is used in the data type

And or: this is the equivalent of and or in mathematics.

Return: for use with def

At this point, I believe you have a deeper understanding of "what are the basic knowledge points of Python rookies?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Type learning knowledge knowledge point rookie content data function condition practical deeper no use priority key keyword interest most dictionary character Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi Huawei OPPO Reno Linux