9. Python Basic Grammar (6) [Data Type Conversion]

Python Basic Grammar (6)

  • Small knowledge point expansion (also the content to be explained after this article is introduced~):
  1. Python data types are:
    number (int), floating point (float), string (str), list (list), tuple (tuple), dictionary (dict), set (set).
    We will explain these in detail in the following articles, but for the basic syntax of Python, we also need to explain the operations of data type conversion in Python. These are very simple operations that can be implemented, so they are placed on the foundation. Unified explanation in grammar~

15. Python data type conversion

Sometimes, we need to convert the built-in type of data. For data type conversion, you only need to use the data type as the function name.
The following built-in functions can perform conversions between data types. These functions return a new object

Guess you like

Origin blog.csdn.net/qq_44907926/article/details/122888223