{"id":600,"date":"2023-05-27T03:20:57","date_gmt":"2023-11-07T09:29:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/"},"modified":"2025-08-02T21:56:14","modified_gmt":"2025-08-02T13:56:14","slug":"python%e7%9a%84id%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/","title":{"rendered":"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740"},"content":{"rendered":"<p>Python\u4e2d\u7684id()\u51fd\u6570\u8fd4\u56de\u5bf9\u8c61\u7684\u201c\u8eab\u4efd\u201d\u3002\u5bf9\u8c61\u7684\u8eab\u4efd\u662f\u4e00\u4e2a\u6574\u6570\uff0c\u5728\u5176\u751f\u547d\u5468\u671f\u5185\u4fdd\u8bc1\u662f\u552f\u4e00\u4e14\u4e0d\u53d8\u7684\u3002\u4e24\u4e2a\u751f\u547d\u5468\u671f\u4e0d\u91cd\u53e0\u7684\u5bf9\u8c61\u53ef\u80fd\u5177\u6709\u76f8\u540c\u7684id()\u503c\u3002\u5728CPython\u7684\u5b9e\u73b0\u4e2d\uff0c\u8fd9\u662f\u5bf9\u8c61\u5728\u5185\u5b58\u4e2d\u7684\u5730\u5740\u3002<\/p>\n<h2>Python \u7684 id() \u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u3002<\/h2>\n<p>Python\u7f13\u5b58\u5e38\u7528\u6570\u636e\u7c7b\u578b\uff08\u5982\u5b57\u7b26\u4e32\u3001\u6574\u6570\u3001\u5143\u7ec4\uff09\u7684id()\u503c\u3002\u56e0\u6b64\uff0c\u5982\u679c\u591a\u4e2a\u53d8\u91cf\u7684\u503c\u76f8\u540c\uff0c\u4f60\u53ef\u80fd\u4f1a\u53d1\u73b0\u5b83\u4eec\u5f15\u7528\u540c\u4e00\u4e2a\u5bf9\u8c61\u5e76\u5177\u6709\u76f8\u540c\u7684id()\u503c\u3002\u8ba9\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u793a\u4f8b\u6765\u9a8c\u8bc1\u8fd9\u4e00\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code># integers\r\na = 10\r\nb = 10\r\nc = 11\r\nd = 12\r\n\r\nprint(id(a))\r\nprint(id(b))\r\nprint(id(c))\r\nprint(id(d))\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\uff1a\u5c06\u4ee5\u4e0b\u5185\u5bb9\u7528\u4e2d\u6587\u81ea\u7136\u5730\u6539\u5199\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879\uff1a<\/p>\n<p>The car is red and it is parked on the street.<\/p>\n<pre class=\"post-pre\"><code>4317900064\r\n4317900064\r\n4317900096\r\n4317900128\r\n<\/code><\/pre>\n<p>\u6ce8\u610f\u5230 &#8216;a&#8217; \u548c &#8216;b&#8217; \u7684 id() \u503c\u662f\u76f8\u540c\u7684\uff0c\u5b83\u4eec\u5177\u6709\u76f8\u540c\u7684\u6574\u6570\u503c\u3002\u8ba9\u6211\u4eec\u770b\u770b\u5b57\u7b26\u4e32\u548c\u5143\u7ec4\u662f\u5426\u4e5f\u6709\u76f8\u4f3c\u7684\u884c\u4e3a\uff1f<\/p>\n<pre class=\"post-pre\"><code># tuples\r\nt = ('A', 'B')\r\nprint(id(t))\r\n\r\nt1 = ('A', 'B')\r\nprint(id(t1))\r\n\r\n# strings\r\ns1 = 'ABC'\r\ns2 = 'ABC'\r\nprint(id(s1))\r\nprint(id(s2))\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\uff1a<\/p>\n<pre class=\"post-pre\"><code>4320130056\r\n4320130056\r\n4320080816\r\n4320080816\r\n<\/code><\/pre>\n<p>\u4ece\u8f93\u51fa\u6765\u770b\uff0c\u5f88\u660e\u663ePython\u5bf9\u5b57\u7b26\u4e32\u548c\u5143\u7ec4\u5bf9\u8c61\u8fdb\u884c\u7f13\u5b58\uff0c\u5e76\u5229\u7528\u5b83\u4eec\u6765\u8282\u7701\u5185\u5b58\u7a7a\u95f4\u3002<\/p>\n<p>\u7f13\u5b58\u4ec5\u80fd\u4e0e\u4e0d\u53ef\u53d8\u5bf9\u8c61\u4e00\u8d77\u4f7f\u7528\uff0c\u6ce8\u610f\u6574\u6570\u3001\u5b57\u7b26\u4e32\u548c\u5143\u7ec4\u90fd\u662f\u4e0d\u53ef\u53d8\u7684\u3002\u56e0\u6b64\uff0cPython\u7684\u5b9e\u73b0\u53ef\u4ee5\u5229\u7528\u7f13\u5b58\u6765\u8282\u7701\u5185\u5b58\u7a7a\u95f4\u5e76\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<p>\u6211\u4eec\u77e5\u9053\u5b57\u5178\u662f\u53ef\u53d8\u7684\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u5373\u4f7f\u5143\u7d20\u76f8\u540c\uff0c\u4e0d\u540c\u5b57\u5178\u7684id()\u662f\u5426\u4f1a\u6709\u6240\u4e0d\u540c\uff1f<\/p>\n<pre class=\"post-pre\"><code># dict\r\nd1 = {\"A\": 1, \"B\": 2}\r\nd2 = {\"A\": 1, \"B\": 2}\r\nprint(id(d1))\r\nprint(id(d2))\r\n<\/code><\/pre>\n<p>\u8f93\u51fa\uff1a\u53ea\u9700\u8981\u4e00\u79cd\u9009\u62e9\uff0c\u7528\u4e2d\u6587\u5c06\u4ee5\u4e0b\u5185\u5bb9\u8f6c\u8ff0\u3002<\/p>\n<pre class=\"post-pre\"><code>4519884624\r\n4519884768\r\n<\/code><\/pre>\n<p>\u5c31\u50cf\u6211\u4eec\u60f3\u7684\u90a3\u6837\uff0c\u5b57\u5178\u5bf9\u8c61\u8fd4\u56de\u4e86\u4e0d\u540c\u7684id()\u503c\uff0c\u4f3c\u4e4e\u5e76\u6ca1\u6709\u7f13\u5b58\u7684\u673a\u5236\u3002<\/p>\n<h2>\u81ea\u5b9a\u4e49\u5bf9\u8c61\u7684Python id()\u51fd\u6570<\/h2>\n<p>\u8ba9\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u83b7\u53d6\u81ea\u5b9a\u4e49\u5bf9\u8c61\u7684id()\u503c\u7684\u7b80\u5355\u793a\u4f8b\u3002<\/p>\n<pre class=\"post-pre\"><code>class Emp:\r\n    a = 0\r\n\r\n\r\ne1 = Emp()\r\ne2 = Emp()\r\n\r\nprint(id(e1))\r\nprint(id(e2))\r\n<\/code><\/pre>\n<p>\u7ed3\u679c\uff1a<\/p>\n<pre class=\"post-pre\"><code>4520251744\r\n4520251856\r\n<\/code><\/pre>\n<h2>\u603b\u7ed3<\/h2>\n<p>Python\u4e2d\u7684id()\u51fd\u6570\u8fd4\u56de\u7684\u503c\u4fdd\u8bc1\u5bf9\u4e8e\u4e00\u4e2a\u5bf9\u8c61\u6765\u8bf4\u662f\u552f\u4e00\u4e14\u6052\u5b9a\u7684\u3002\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u8fd9\u4e00\u70b9\u6765\u786e\u5b9a\u4e24\u4e2a\u5bf9\u8c61\u662f\u4e0d\u662f\u6307\u5411\u4e86\u540c\u4e00\u4e2a\u5185\u5b58\u5bf9\u8c61\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u4ece\u6211\u4eec\u7684GitHub\u4ee3\u7801\u5e93\u4e2d\u67e5\u770b\u5b8c\u6574\u7684Python\u811a\u672c\u548c\u66f4\u591a\u7684Python\u793a\u4f8b\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a\u5b98\u65b9\u6587\u6863<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u4e2d\u7684id()\u51fd\u6570\u8fd4\u56de\u5bf9\u8c61\u7684\u201c\u8eab\u4efd\u201d\u3002\u5bf9\u8c61\u7684\u8eab\u4efd\u662f\u4e00\u4e2a\u6574\u6570\uff0c\u5728\u5176\u751f\u547d\u5468\u671f\u5185\u4fdd\u8bc1\u662f\u552f\u4e00\u4e14\u4e0d\u53d8\u7684\u3002\u4e24\u4e2a\u751f [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1718,32,1719],"class_list":["post-600","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-id","tag-python","tag-1719"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u6df1\u5165\u89e3\u6790Python id()\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528id()\u83b7\u53d6\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u548c\u5185\u5b58\u5730\u5740\u3002\u672c\u6587\u8be6\u7ec6\u8bb2\u89e3id()\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3001\u4e0e\u5bf9\u8c61\u8eab\u4efd\u7684\u5173\u7cfb\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u5e2e\u52a9Python\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u5bf9\u8c61\u5185\u5b58\u7ba1\u7406\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/python\u7684id\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u89e3\u6790Python id()\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528id()\u83b7\u53d6\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u548c\u5185\u5b58\u5730\u5740\u3002\u672c\u6587\u8be6\u7ec6\u8bb2\u89e3id()\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3001\u4e0e\u5bf9\u8c61\u8eab\u4efd\u7684\u5173\u7cfb\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u5e2e\u52a9Python\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u5bf9\u8c61\u5185\u5b58\u7ba1\u7406\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/python\u7684id\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-07T09:29:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-02T13:56:14+00:00\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/\",\"name\":\"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-07T09:29:40+00:00\",\"dateModified\":\"2025-08-02T13:56:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"description\":\"\u6df1\u5165\u89e3\u6790Python id()\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528id()\u83b7\u53d6\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u548c\u5185\u5b58\u5730\u5740\u3002\u672c\u6587\u8be6\u7ec6\u8bb2\u89e3id()\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3001\u4e0e\u5bf9\u8c61\u8eab\u4efd\u7684\u5173\u7cfb\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u5e2e\u52a9Python\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u5bf9\u8c61\u5185\u5b58\u7ba1\u7406\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740 - Blog - Silicon Cloud","description":"\u6df1\u5165\u89e3\u6790Python id()\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528id()\u83b7\u53d6\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u548c\u5185\u5b58\u5730\u5740\u3002\u672c\u6587\u8be6\u7ec6\u8bb2\u89e3id()\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3001\u4e0e\u5bf9\u8c61\u8eab\u4efd\u7684\u5173\u7cfb\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u5e2e\u52a9Python\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u5bf9\u8c61\u5185\u5b58\u7ba1\u7406\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/python\u7684id\u65b9\u6cd5\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740","og_description":"\u6df1\u5165\u89e3\u6790Python id()\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528id()\u83b7\u53d6\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u548c\u5185\u5b58\u5730\u5740\u3002\u672c\u6587\u8be6\u7ec6\u8bb2\u89e3id()\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3001\u4e0e\u5bf9\u8c61\u8eab\u4efd\u7684\u5173\u7cfb\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u5e2e\u52a9Python\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u5bf9\u8c61\u5185\u5b58\u7ba1\u7406\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/python\u7684id\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-07T09:29:40+00:00","article_modified_time":"2025-08-02T13:56:14+00:00","author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/","name":"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-07T09:29:40+00:00","dateModified":"2025-08-02T13:56:14+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"description":"\u6df1\u5165\u89e3\u6790Python id()\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u4e86\u89e3\u5982\u4f55\u4f7f\u7528id()\u83b7\u53d6\u5bf9\u8c61\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u548c\u5185\u5b58\u5730\u5740\u3002\u672c\u6587\u8be6\u7ec6\u8bb2\u89e3id()\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u3001\u4e0e\u5bf9\u8c61\u8eab\u4efd\u7684\u5173\u7cfb\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u6280\u5de7\uff0c\u5e2e\u52a9Python\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u5bf9\u8c61\u5185\u5b58\u7ba1\u7406\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6df1\u5165\u7406\u89e3Python id()\u65b9\u6cd5\uff1a\u5bf9\u8c61\u8eab\u4efd\u4e0e\u5185\u5b58\u5730\u5740"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e7%9a%84id%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":4,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":110340,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/600\/revisions\/110340"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}