3. Data model - Python 3.10.5 documentation
3.1. オブジェクト、値、および型
🌻 オブジェクト
🌼 オブジェクト
- Objects
are Python’s abstraction for data. All data in a Python program is represented by objects or by relations between objects. (In a sense, and in conformance to Von Neumann’s model of a “stored program computer”, code is also represented by objects.)
- オブジェクトはPythonのデータの抽象化です。Pythonのプログラム内のすべてのデータは、オブジェクトまたはオブジェクト間の関係によって表現されます。(ある意味、フォン・ノイマンの「ストアドプログラムコンピュータ」のモデルに準拠して、コードもオブジェクトによって表現されます)。
Pythonではデータはすべてオブジェクト
- 文字、数字もオブジェクト
- オブジェクトがすべてのデータのもとになっている
※ノイマン型コンピュータ
🌼 同一性(identity)・型・値