摘要: id id(x)对应变量x所引用对象的内存地址。可以把id(x)看成变量x的身份标识。 is 有时在编程中需要与变量的身份标识打交道,但不是通过 id 函数,而是 is 操作符。 The operators is and is not test for object identity: x is y 阅读全文
posted @ 2017-09-22 10:41 Sawyer Ford 阅读(203) 评论(0) 推荐(0) 编辑