Python Object

How Python store variables without pointer to memory address ?

-By Huilong An

As we all know, Python uses a dictionary to store the names of variables. And the stored type is object. It is a map.

varnames['varname'] = object

And objects are divided into mutable and immutable ones.

Let us look the following cases.



最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,878评论 0 23
  • 南方的夏日雨雨雨雨,北方的夏日热热热热。 仅以此圣代献给在北方的艳阳里嘶吼的人儿些,也献给即将进入酷暑的南荒人。 ...
    晚嘉一阅读 405评论 2 1
  • 七律 禅悟·网 世间万物皆在网,束体罗形限精神。 天地六合曰宇宙,性情七窍谓人身。 登临泰岳观天下,冲破云霄见陌尘...
    孙上清阅读 585评论 0 4
  • 文/千花千树 午夜,风声细细。心事在纸上,又迷了路。索性让满怀的思绪在那凉意中穿梭,才发觉,又走过了一个季节。窗外...
    千花千树阅读 641评论 0 1
  • IcedAmericano阅读 150评论 0 0