Self taught Python by Xiaobai (4) Python data type


This paper refers toHi guest.comOfPython tutorial

key word:

Python variables Python numeric type Python integer (int)

Python float Python complex

Python boolean type (bool) Python string type (string)

Python bytes type Python string to bytes Python bytes to string

Python input() function Print() function Python format output Python type conversion

Python data type


We are learning a programming language. It is very important to have a clear learning route at the beginning. Only when we know what we need to learn, can we better stimulate our passion for learning. Learning is like making copies while playing a game, and the learning route is just like the mainline task. In the mainline task, you can know what equipment the replica has, and know the attribute bonus of these equipment, so that you can improve your level step by step.

After learning n + knowledge points, we will feel a little confused. What is the use of these things? At this time, you will not see the results of the learning!

This topic is aboutPython learning routeThe third module in:Python data type


bookPython data typeIt is divided into the following sections:

1️⃣ ​Python variables

2️⃣ ​Python numeric type

3️⃣ ​Python integer (int)

4️⃣ ​Python float

5️⃣ ​Python complex

6️⃣ ​Python boolean type (bool)

7️⃣ ​Python string type (string)

8️⃣ ​Python string type (string)

9️⃣ Python string type (string)

Python string type (string)

1️⃣1️⃣ ​Python bytes type

1️⃣2️⃣ Python string to bytes

1️⃣3️⃣ Python bytes to string

1️⃣4️⃣ ​Python input() function

1️⃣5️⃣ ​Print() function

1️⃣6️⃣ Python format output

1️⃣7️⃣ ​Python type conversion


Next chapterPython operator

Because the number of articles is too much, it is not easy to organize, so if the update is too slow, please understand, I will try my best to update the article, you can first pay attention to me, or collect this article, I will continue to update!

September 18, 2020, to be continued…..

This work adoptsCC agreementThe author and the link to this article must be indicated in the reprint