2022年7月28日 星期四

Built-in Types

 Built-in Types

2022/07/28

-----


https://pixabay.com/zh/photos/snake-python-serpent-scales-543243/

-----

「Built-in Types


Numeric Types — int, float, complex

Iterator Types

Sequence Types — list, tuple, range

Text Sequence Type — str

Binary Sequence Types — bytes, bytearray, memoryview

Set Types — set, frozenset

Mapping Types — dict

Context Manager Types

Type Annotation Types — Generic Alias, Union」[1]。

-----

References


# 官方說法

[1] The Python Standard Library — Python 3.9.2 documentation

https://docs.python.org/3/library/


# 簡單的分類

[2] Python Data Types

https://www.w3schools.com/python/python_datatypes.asp


# 中等的分類

[3] Basics of Python – Built-in Types - BTech Geeks

https://btechgeeks.com/basics-of-python-built-in-types/


# 複雜的分類

[4] Type Hierarchy in Python | Python in Plain English

https://python.plainenglish.io/python-type-hierarchy-378a049f2f81


# 完整的列表

[5] Built-in Types | Types and Objects in Python | InformIT

https://www.informit.com/articles/article.aspx?p=453682&seqNum=5

-----

Python Machine Learning(目錄)

https://mandhistory.blogspot.com/2022/05/python.html

-----

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。