python之函数用法id(),了解即可
# -*- coding: utf-8 -*- #python 27 #xiaodeng #python之函数用法id(),了解即可 #http://www.cnblogs.com/hongfei/p/3858256.html #id() #说明:查找对象的内存地址 ''' id(...) id(object) -> integer Return the identity of an object. This is guaranteed to be unique among simultaneously existing objects. (Hint: it's the object's memory address.) ''' #案例 name='xiaodeng' print id(name)#32256224
无语言基础,自学python所做的各种笔记,欢迎大牛指点.