Study Notes (01): Python Started - How to distinguish between the computer and digital character

Learning immediately: https://edu.csdn.net/course/play/24459/296171?utm_source=blogtoedu

python

variable:

Function is not defined, nor need to define the data type, direct assignment variables can be defined as: variable name = value;

constant:

python does not support the constants defined constants instead of variables can be used, generally constant variable name, named as follows: all uppercase letters;

Comment:

Between the three double quotes, single quotes, or a multi-line comment;

# Number is a single line comment;

Basic data types:

integer type int #

long # long integer infinite python3 do not have this type, all integers are of type int

float float #

function:

type (variable) # View Data Types

Published an original article · won praise 0 · Views 24

Guess you like

Origin blog.csdn.net/weixin_41778395/article/details/104027009