Python: Variables

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/qq_43336822/article/details/102772348

variable

1.python most computer languages and practices is slightly different, he is not the value stored in a variable, but rather the value of the name attached to the top . Some programmers will say python is not variable, only the name.

2. Direct Input Enter the name of the variable, this variable will be output (not contain an escape character sets, such as \ n, etc.)

3.python data types:
(1)Number: Int, float, complex (complex)
(2)String#python string may be '' from spreading, may also be used "" expanded from
(3)Boolean#True and False must be capitalized, or python is not recognized
(4)List List
(5)Tuple tuple# Lists and tuples in another place - a summary of the article
(6)Dictionary Dictionary
(7)Sets collection # The two did not learn I have not learned a summary of the article will put another ~

Guess you like

Origin blog.csdn.net/qq_43336822/article/details/102772348