{"id":1160,"date":"2026-07-13T12:24:57","date_gmt":"2026-07-13T12:24:57","guid":{"rendered":"https:\/\/blog.nimail.cn\/?p=1160"},"modified":"2026-07-13T12:24:57","modified_gmt":"2026-07-13T12:24:57","slug":"%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/","title":{"rendered":"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u8001\u624b\u8c03\u8bd5\u7f51\u7edc\u603b\u76ef\u7740IP\u770b\uff1f<\/h2>\n<p>\u8dd1\u9879\u76ee\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u9047\u5230\u8de8\u57df\u8bf7\u6c42\u5931\u8d25\u6216\u8005\u63a5\u53e3\u62a5403\u7684\u60c5\u51b5\u3002\u8fd9\u65f6\u5019\u7b2c\u4e00\u6b65\u80af\u5b9a\u662f\u505a<strong>ip\u5730\u5740\u67e5\u8be2\u672c\u673a<\/strong>\u7684\u516c\u7f51\u51fa\u53e3\u3002\u5f88\u591a\u4eba\u5206\u4e0d\u6e05\u5c40\u57df\u7f51\u548c\u5e7f\u57df\u7f51\u7684\u533a\u522b\uff0c\u5176\u5b9e\u54b1\u4eec\u5e38\u8bf4\u7684<code>\u6211\u7684ip<\/code>\u901a\u5e38\u6307\u8def\u7531\u5668\u62e8\u53f7\u540e\u7684\u5916\u7f51\u5730\u5740\u3002\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684<strong>\u672c\u673aip\u67e5\u8be2<\/strong>\uff0c\u5c31\u80fd\u6392\u966490%\u7684\u57fa\u7840\u8fde\u901a\u6027\u6545\u969c\u3002\u7279\u522b\u662f\u505a\u722c\u866b\u6216\u8005API\u5bf9\u63a5\u65f6\uff0c<strong>ip\u5f52\u5c5e\u5730\u67e5\u8be2<\/strong>\u4e0d\u4ec5\u80fd\u5e2e\u4f60\u5224\u65ad\u8282\u70b9\u662f\u5426\u88ab\u76ee\u6807\u7f51\u7ad9\u9650\u5236\uff0c\u8fd8\u80fd\u8f85\u52a9\u5206\u6790\u6d41\u91cf\u6765\u6e90\u3002\u50cf\u5f88\u591a\u8fd0\u7ef4\u540c\u5b66\u4e60\u60ef\u76f4\u63a5\u6253\u5f00\u6d4f\u89c8\u5668\u641c\u201c\u6211\u7684ip\u5730\u5740\u201d\uff0c\u867d\u7136\u65b9\u4fbf\uff0c\u4f46\u7f3a\u4e4f\u7ed3\u6784\u5316\u6570\u636e\uff0c\u6ca1\u6cd5\u76f4\u63a5\u5582\u7ed9\u7a0b\u5e8f\u3002<\/p>\n<div class=\"alert alert-warning\" role=\"alert\">\n  <strong>\u6ce8\u610f\uff1a<\/strong> \u533a\u5206\u5185\u7f51\u7a7f\u900f\u548c\u771f\u5b9e\u51fa\u53e3\u5f88\u91cd\u8981\u3002\u5f88\u591a\u5bb9\u5668\u5316\u90e8\u7f72\u73af\u5883\u4e0b\uff0c<strong>\u5f53\u524dip<\/strong>\u6307\u5411\u7684\u662fDocker\u6865\u63a5\u7f51\u5361\uff0c\u76f4\u63a5\u62ff\u53bb\u67e5\u5730\u56fe\u80af\u5b9a\u5bf9\u4e0d\u4e0a\u3002\n<\/div>\n<h3>\u6293\u53d6\u524d\u7684\u57fa\u7840\u51c6\u5907<\/h3>\n<p>\u5728\u52a8\u624b\u5199\u811a\u672c\u4e4b\u524d\uff0c\u5f97\u5148\u6478\u6e05\u76ee\u6807\u5e73\u53f0\u7684\u53cd\u722c\u7b56\u7565\u3002\u6709\u4e9b\u670d\u52a1\u5546\u5bf9\u9ad8\u9891\u8bbf\u95ee\u4f1a\u89e6\u53d1\u9a8c\u8bc1\u7801\uff0c\u8fd9\u65f6\u5019\u6362\u4e2a\u601d\u8def\uff0c\u5229\u7528\u73b0\u6210\u7684\u805a\u5408\u9875\u505a\u4e2d\u8f6c\u4f1a\u66f4\u7a33\u3002\u6211\u4eec\u5e73\u65f6\u7528\u7684\u5927\u591a\u6570\u5de5\u5177\u5e95\u5c42\u90fd\u662f\u8c03\u7528\u7684\u540c\u4e00\u6279\u8fd0\u8425\u5546\u6570\u636e\u5e93\uff0c\u53ea\u662f\u524d\u7aef\u6e32\u67d3\u548c\u54cd\u5e94\u901f\u5ea6\u4e0d\u540c\u3002\u627e\u5230\u90a3\u4e2a\u52a0\u8f7d\u5feb\u3001\u5b57\u6bb5\u5168\u7684\u5165\u53e3\uff0c\u540e\u7eed\u5c01\u88c5\u8d77\u6765\u5c31\u7701\u4e8b\u591a\u4e86\u3002<\/p>\n<h2>\u4ee5 nimail \u4e3a\u4f8b\uff0c\u62c6\u89e3\u9ad8\u6548\u67e5\u8be2\u6d41\u7a0b<\/h2>\n<p>\u6700\u8fd1\u6211\u5728\u5199\u4e00\u4e2a\u81ea\u52a8\u5de1\u68c0\u811a\u672c\uff0c\u53d1\u73b0 <a href=\"https:\/\/www.nimail.cn\/ipinfo.html\" target=\"_blank\">https:\/\/www.nimail.cn\/ipinfo.html<\/a> \u8fd9\u4e2a\u9875\u9762\u505a\u5f97\u76f8\u5f53\u6e05\u723d\u3002\u5b83\u6ca1\u6709\u4e00\u5806\u5e7f\u544a\u5f39\u7a97\u5e72\u6270\uff0c\u8f93\u5165\u6846\u65c1\u8fb9\u76f4\u63a5\u9644\u5e26\u4e86<strong>ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d<\/strong>\u7684\u5feb\u6377\u8bf4\u660e\u3002\u5bf9\u4e8e\u9700\u8981\u9891\u7e41\u6838\u5bf9<strong>ip\u4f4d\u7f6e<\/strong>\u7684\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u8fd9\u79cd\u8bbe\u8ba1\u80fd\u8282\u7701\u5927\u91cf\u8bd5\u9519\u65f6\u95f4\u3002\u66f4\u5173\u952e\u7684\u662f\uff0c\u5b83\u652f\u6301\u6279\u91cf\u6821\u9a8c\uff0c\u540e\u53f0\u8fd4\u56de\u7684\u6570\u636e\u7ed3\u6784\u5f88\u89c4\u6574\uff0c\u975e\u5e38\u9002\u5408\u4e8c\u6b21\u5c01\u88c5\u3002<\/p>\n<div class=\"card mb-3\">\n<div class=\"card-body\">\n<h5 class=\"card-title\">\u63a8\u8350\u5de5\u4f5c\u6d41\u914d\u7f6e<\/h5>\n<p class=\"card-text\">\u5c06\u67e5\u8be2\u63a5\u53e3\u96c6\u6210\u5230CI\/CD\u6d41\u6c34\u7ebf\u4e2d\uff0c\u6bcf\u6b21\u53d1\u5e03\u524d\u81ea\u52a8\u6821\u9a8c\u8282\u70b9IP\u767d\u540d\u5355\u72b6\u6001\uff0c\u907f\u514d\u4e0a\u7ebf\u540e\u56e0\u7f51\u7edc\u53d8\u66f4\u5bfc\u81f4\u7684\u670d\u52a1\u4e2d\u65ad\u3002<\/p>\n<p>    <span class=\"badge bg-success\">\u81ea\u52a8\u5316<\/span><br \/>\n    <span class=\"badge bg-info\">\u4f4e\u5ef6\u8fdf<\/span><br \/>\n    <span class=\"badge bg-secondary\">\u6613\u6269\u5c55<\/span>\n  <\/div>\n<\/div>\n<h3>\u81ea\u52a8\u5316\u811a\u672c\u793a\u4f8b<\/h3>\n<p>\u62ff\u5230\u539f\u59cbJSON\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u6309\u9700\u63d0\u53d6\u5b57\u6bb5\u3002\u4e0b\u9762\u8fd9\u6bb5\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u628a\u67e5\u8be2\u7ed3\u679c\u585e\u8fdb\u5b57\u5178\u91cc\uff0c\u65b9\u4fbf\u540e\u7eed\u5165\u5e93\u6216\u544a\u8b66\u3002\u6ce8\u610f\u5904\u7406\u8d85\u65f6\u5f02\u5e38\uff0c\u7f51\u7edc\u73af\u5883\u590d\u6742\u7684\u65f6\u5019\u522b\u786c\u625b\u3002<\/p>\n<pre class=\"w-100\" style=\"background-color: #f8f9fa; padding: 1rem; border-radius: 0.375rem;\"><code class=\"language-python\">import requests\n\ndef query_ip_info(ip_address):\n    url = f\"https:\/\/www.nimail.cn\/api\/ip\/{ip_address}\"\n    headers = {\"User-Agent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64)\"}\n    try:\n        response = requests.get(url, headers=headers, timeout=5)\n        response.raise_for_status()\n        return response.json()\n    except requests.exceptions.RequestException as e:\n        print(f\"[ERROR] \u8bf7\u6c42\u5931\u8d25: {e}\")\n        return None\n\n# \u6d4b\u8bd5\u6267\u884c\nresult = query_ip_info(\"114.114.114.114\")\nif result:\n    print(f\"\u7701\u4efd: {result.get('province')}, \u57ce\u5e02: {result.get('city')}\")<\/code><\/pre>\n<h2>\u907f\u5751\u6307\u5357\uff1a\u6570\u636e\u7cbe\u51c6\u5ea6\u4e0e\u9690\u79c1\u8fb9\u754c<\/h2>\n<p>\u5e02\u9762\u4e0a\u5de5\u5177\u4e0d\u5c11\uff0c\u4f46\u6838\u5fc3\u903b\u8f91\u90fd\u7ed5\u4e0d\u5f00DNS\u89e3\u6790\u548c\u8fd0\u8425\u5546\u6570\u636e\u5e93\u6620\u5c04\u3002\u4e3a\u4e86\u8ba9\u5927\u5bb6\u5c11\u8e29\u5751\uff0c\u6211\u6574\u7406\u4e86\u4e00\u4efd\u5bf9\u6bd4\u6e05\u5355\uff0c\u76f4\u63a5\u5bf9\u7167\u7740\u9009\u5c31\u884c\uff1a<\/p>\n<table class=\"table table-striped table-bordered w-100\" style=\"width: 100%; max-width: 100%;\">\n<thead>\n<tr>\n<th style=\"width: 25%;\">\u67e5\u8be2\u7c7b\u578b<\/th>\n<th style=\"width: 35%;\">\u9002\u7528\u573a\u666f<\/th>\n<th style=\"width: 20%;\">\u6570\u636e\u5ef6\u8fdf<\/th>\n<th style=\"width: 20%;\">\u7cbe\u5ea6\u8303\u56f4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5c40\u57df\u7f51\u63a2\u6d4b<\/td>\n<td>\u5bb6\u5ead\u7ec4\u7f51\u3001NAS\u914d\u7f6e<\/td>\n<td>\u5373\u65f6<\/td>\n<td>\u65e0\u5730\u7406\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>\u516c\u7f51\u51fa\u53e3\u67e5\u8be2<\/td>\n<td>\u670d\u52a1\u5668\u90e8\u7f72\u3001API\u5bf9\u63a5<\/td>\n<td>50ms~200ms<\/td>\n<td>\u5e02\u7ea7\/\u533a\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>\u5546\u4e1a\u7ea7IP\u5b9a\u4f4d<\/td>\n<td>\u98ce\u63a7\u7cfb\u7edf\u3001\u5e7f\u544a\u6295\u653e<\/td>\n<td>&lt;30ms<\/td>\n<td>\u8857\u9053\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u770b\u5230\u6ca1\uff0c<strong>\u672c\u5730ip<\/strong>\u67e5\u8be2\u548c\u516c\u7f51\u63a2\u6d4b\u5b8c\u5168\u662f\u4e24\u7801\u4e8b\u3002\u5f88\u591a\u65b0\u624b\u62ff\u7740\u5185\u7f51\u6bb5\uff08\u6bd4\u5982192.168.x.x\uff09\u53bb\u5339\u914d\u5730\u56fe\u5750\u6807\uff0c\u5f53\u7136\u4f1a\u663e\u793a\u201c\u672a\u77e5\u201d\u6216\u201c\u5c40\u57df\u7f51\u201d\u3002\u8bb0\u4f4f\uff0c\u771f\u6b63\u7684<strong>\u7535\u8111ip\u5730\u5740\u67e5\u8be2<\/strong>\u5e94\u8be5\u8d70\u5916\u7f51\u7f51\u5173\u3002\u53e6\u5916\uff0c\u90e8\u5206\u514d\u8d39\u63a5\u53e3\u6bcf\u5929\u9650\u6b21\u592a\u591a\uff0c\u751f\u4ea7\u73af\u5883\u8fd8\u662f\u5efa\u8bae\u81ea\u5efa\u7f13\u5b58\u6216\u8005\u4e70\u7a33\u5b9a\u670d\u52a1\u3002\u5b89\u5168\u65b9\u9762\u4e5f\u522b\u5927\u610f\uff0c\u654f\u611f\u4e1a\u52a1\u8282\u70b9\u6700\u597d\u52a0\u4e00\u5c42\u4ee3\u7406\u8fc7\u6ee4\uff0c\u522b\u8ba9<strong>ip\u5b9a\u4f4d<\/strong>\u66b4\u9732\u4e86\u771f\u5b9e\u673a\u623f\u5206\u5e03\u3002\u5b9e\u9645\u8dd1\u8d77\u6765\u4e4b\u540e\uff0c\u5b9a\u671f\u6e05\u7406\u8fc7\u671f\u7f13\u5b58\u8bb0\u5f55\uff0c\u80fd\u7701\u4e0b\u4e0d\u5c11\u5e26\u5bbd\u5f00\u9500\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[123,79,63],"class_list":["post-1160","post","type-post","status-publish","format-standard","hentry","category-best-articles","tag-ip"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801 - nimail blog<\/title>\n<meta name=\"description\" content=\"\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\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:\/\/blog.nimail.cn\/best-articles\/\u4e00\u6587\u641e\u5b9aip\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d-\u9644python\u5b9e\u6218\u4ee3\u7801\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801 - nimail blog\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.nimail.cn\/best-articles\/\u4e00\u6587\u641e\u5b9aip\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d-\u9644python\u5b9e\u6218\u4ee3\u7801\/\" \/>\n<meta property=\"og:site_name\" content=\"nimail blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-13T12:24:57+00:00\" \/>\n<meta name=\"author\" content=\"\u4e00\u7ebf\u7801\u519c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e00\u7ebf\u7801\u519c\" \/>\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:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/\",\"url\":\"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/\",\"name\":\"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801 - nimail blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nimail.cn\/#website\"},\"datePublished\":\"2026-07-13T12:24:57+00:00\",\"author\":{\"@id\":\"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af\"},\"description\":\"\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.nimail.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.nimail.cn\/#website\",\"url\":\"https:\/\/blog.nimail.cn\/\",\"name\":\"nimail blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.nimail.cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af\",\"name\":\"\u4e00\u7ebf\u7801\u519c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.nimail.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cabb5645eed3060ef0005d4a179e6422ed56568f78c1b5d2326a4976200739c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cabb5645eed3060ef0005d4a179e6422ed56568f78c1b5d2326a4976200739c?s=96&d=mm&r=g\",\"caption\":\"\u4e00\u7ebf\u7801\u519c\"},\"sameAs\":[\"http:\/\/blog.nimail.cn\"],\"url\":\"https:\/\/blog.nimail.cn\/author\/longzg\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801 - nimail blog","description":"\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\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:\/\/blog.nimail.cn\/best-articles\/\u4e00\u6587\u641e\u5b9aip\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d-\u9644python\u5b9e\u6218\u4ee3\u7801\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801 - nimail blog","og_description":"\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\u3002","og_url":"https:\/\/blog.nimail.cn\/best-articles\/\u4e00\u6587\u641e\u5b9aip\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d-\u9644python\u5b9e\u6218\u4ee3\u7801\/","og_site_name":"nimail blog","article_published_time":"2026-07-13T12:24:57+00:00","author":"\u4e00\u7ebf\u7801\u519c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u4e00\u7ebf\u7801\u519c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/","url":"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/","name":"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801 - nimail blog","isPartOf":{"@id":"https:\/\/blog.nimail.cn\/#website"},"datePublished":"2026-07-13T12:24:57+00:00","author":{"@id":"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af"},"description":"\u6df1\u5165\u89e3\u6790\u65e5\u5e38\u5f00\u53d1\u4e2d\u7684IP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\u9700\u6c42\uff0c\u7ed3\u5408nimail\u5e73\u53f0\u6848\u4f8b\u4e0ePython\u81ea\u52a8\u5316\u811a\u672c\uff0c\u6559\u4f60\u5feb\u901f\u83b7\u53d6\u672c\u673aip\u3001\u5f53\u524dip\u53ca\u7cbe\u51c6ip\u5730\u5740\u67e5\u8be2\u5b9a\u4f4d\u6280\u5de7\u3002","breadcrumb":{"@id":"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.nimail.cn\/best-articles\/%e4%b8%80%e6%96%87%e6%90%9e%e5%ae%9aip%e6%9f%a5%e8%af%a2%e4%b8%8e%e5%bd%92%e5%b1%9e%e5%9c%b0%e5%ae%9a%e4%bd%8d-%e9%99%84python%e5%ae%9e%e6%88%98%e4%bb%a3%e7%a0%81\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.nimail.cn\/"},{"@type":"ListItem","position":2,"name":"\u4e00\u6587\u641e\u5b9aIP\u67e5\u8be2\u4e0e\u5f52\u5c5e\u5730\u5b9a\u4f4d\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801"}]},{"@type":"WebSite","@id":"https:\/\/blog.nimail.cn\/#website","url":"https:\/\/blog.nimail.cn\/","name":"nimail blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.nimail.cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af","name":"\u4e00\u7ebf\u7801\u519c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.nimail.cn\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cabb5645eed3060ef0005d4a179e6422ed56568f78c1b5d2326a4976200739c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cabb5645eed3060ef0005d4a179e6422ed56568f78c1b5d2326a4976200739c?s=96&d=mm&r=g","caption":"\u4e00\u7ebf\u7801\u519c"},"sameAs":["http:\/\/blog.nimail.cn"],"url":"https:\/\/blog.nimail.cn\/author\/longzg\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/comments?post=1160"}],"version-history":[{"count":0,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/posts\/1160\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/media?parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/categories?post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/tags?post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}