全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 python论坛
1501 0
2015-05-03
Python is dynamically typed, and implies polymorphism. Similar to Java, all variables in python are oftype Object.[size=14.3999996185303px]Objects are also reference counted and garbage collected. [size=14.3999996185303px]In python, types live with objects, not names.
Concretely, 1. Variables are entries in a system table, with space for links to objects.
2. Objects are pieces of allocated memory with enough space to represent the values for which they stand for
3. References are automatically followed pointers from variables to objects.

A simple statement
a =3
implies three steps:
1. create an object to repsent the value 3
2. create the variable a, if it does not yet exist
3. link the variable a to the new object 3











二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群