{"id":1168,"date":"2026-07-15T12:25:06","date_gmt":"2026-07-15T12:25:06","guid":{"rendered":"https:\/\/blog.nimail.cn\/?p=1168"},"modified":"2026-07-15T12:25:06","modified_gmt":"2026-07-15T12:25:06","slug":"%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/","title":{"rendered":"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218"},"content":{"rendered":"<h2 class=\"mt-4 mb-3\">\u4e3a\u4ec0\u4e48\u8001\u624b\u90fd\u504f\u7231\u5e95\u5c42\u65f6\u95f4\u6233\uff1f<\/h2>\n<p>\u5728\u8de8\u5e73\u53f0\u5f00\u53d1\u548c\u5206\u5e03\u5f0f\u7cfb\u7edf\u6392\u67e5\u4e2d\uff0c<strong>\u65f6\u95f4\u8f6c\u6362<\/strong>\u5f80\u5f80\u662f\u7ed5\u4e0d\u5f00\u7684\u75db\u70b9\u3002\u4eba\u7c7b\u4e60\u60ef\u201c\u5e74-\u6708-\u65e5 \u65f6:\u5206:\u79d2\u201d\u7684\u89c6\u89c9\u8868\u8fbe\uff0c\u4f46\u8ba1\u7b97\u673a\u5e95\u5c42\u66f4\u949f\u60c5\u4e8e\u4ece1970\u5e741\u67081\u65e5\u5348\u591c\u5f00\u59cb\u8ba1\u7b97\u7684\u6574\u6570\u5e8f\u5217\u2014\u2014\u4e5f\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684<strong>unix\u65f6\u95f4\u6233<\/strong>\u3002\u5b83\u672c\u8d28\u4e0a\u5c31\u662f\u4e00\u4e2a<span class=\"badge bg-primary\">\u5f53\u524d\u65f6\u95f4\u6233<\/span>\uff0c\u7528\u7eaf\u6570\u5b57\u8bb0\u5f55\u77ac\u95f4\uff0c\u5f7b\u5e95\u89c4\u907f\u4e86\u65f6\u533a\u6df7\u4e71\u548c\u95f0\u5e74\u5dee\u5f02\u5e26\u6765\u7684\u9690\u853dbug\u3002\u5f88\u591a\u521a\u5165\u884c\u7684\u5de5\u7a0b\u5e08\u5728\u5904\u7406\u591a\u7aef\u6570\u636e\u540c\u6b65\u65f6\uff0c\u7ecf\u5e38\u56e0\u4e3a\u6beb\u79d2\u7ea7\u548c\u79d2\u7ea7\u7684\u5dee\u5f02\u5bfc\u81f4\u65e5\u5fd7\u5bf9\u4e0d\u4e0a\u53f7\u3002\u8bb0\u4f4f\uff0c\u524d\u7aefJavaScript\u9ed8\u8ba4\u8fd4\u56de\u7684\u662f\u6beb\u79d2\uff0c\u800c\u5927\u591a\u6570\u540e\u7aefAPI\uff08\u5982Java\u6216Go\u670d\u52a1\uff09\u9ed8\u8ba4\u4f7f\u7528\u79d2\u7ea7\u65f6\u95f4\u6233\uff0c\u8fd9\u4e2d\u95f4\u7684\u4e09\u4f4d\u6570\u5dee\u503c\u5c31\u662f\u65e5\u5e38\u8c03\u8bd5\u7684\u91cd\u707e\u533a\u3002<\/p>\n<div class=\"alert alert-warning mt-3 mb-3\">\n\u5efa\u8bae\u5728\u9879\u76ee\u521d\u671f\u5c31\u7edf\u4e00\u65f6\u95f4\u5355\u4f4d\u89c4\u8303\u3002\u53ef\u4ee5\u5728\u5168\u5c40\u4e2d\u95f4\u4ef6\u5c42\u505a\u4e00\u6b21\u62e6\u622a\u8f6c\u6362\uff0c\u907f\u514d\u4e1a\u52a1\u903b\u8f91\u91cc\u5230\u5904\u5145\u65a5\u7740\u9664\u4ee51000\u6216\u8005\u4e58\u4ee51000\u7684\u9b54\u6cd5\u6570\u5b57\u3002\u6e05\u6670\u7684\u53d8\u91cf\u547d\u540d\u5f80\u5f80\u6bd4\u590d\u6742\u7684\u6ce8\u91ca\u66f4\u80fd\u62ef\u6551\u540e\u671f\u7684\u7ef4\u62a4\u6210\u672c\u3002\n<\/div>\n<p>\u8fd9\u65f6\u5019\uff0c\u4e00\u4e2a\u9760\u8c31\u7684<strong>\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177<\/strong>\u5c31\u80fd\u7701\u53bb\u5927\u91cf\u624b\u52a8\u6838\u5bf9\u7684\u65f6\u95f4\u3002\u65e0\u8bba\u662f\u505a\u63a5\u53e3\u8054\u8c03\u8fd8\u662f\u5206\u6790Nginx\u8bbf\u95ee\u65e5\u5fd7\uff0c\u628a\u4e00\u4e32\u51b0\u51b7\u7684\u6570\u5b57\u6254\u8fdb\u53bb\uff0c\u7acb\u523b\u5c31\u80fd\u62ff\u5230\u53ef\u8bfb\u6027\u6781\u5f3a\u7684\u6807\u51c6\u683c\u5f0f\u3002\u8fd9\u79cd\u65e0\u7f1d\u8854\u63a5\u7684\u4f53\u9a8c\uff0c\u6b63\u662f\u7ebf\u4e0a\u73af\u5883\u7a33\u5b9a\u8fd0\u884c\u7684\u57fa\u77f3\u3002\u5f53\u6211\u4eec\u9762\u5bf9\u6d77\u91cf\u8bf7\u6c42\u6570\u636e\u65f6\uff0c\u5feb\u901f\u5b9a\u4f4d\u67d0\u4e2a\u7279\u5b9a\u65f6\u523b\u7684\u6d41\u91cf\u5cf0\u503c\uff0c\u5168\u9760\u8fd9\u5957\u57fa\u7840\u7684\u65f6\u95f4\u6620\u5c04\u673a\u5236\u3002<\/p>\n<h2 class=\"mt-4 mb-3\">\u501f\u52a9\u5728\u7ebf\u5e73\u53f0\u52a0\u901f\u65e5\u5e38\u5f00\u53d1\u6d41<\/h2>\n<p>\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u6bcf\u6b21\u90fd\u9020\u8f6e\u5b50\u3002\u5e02\u9762\u4e0a\u6210\u719f\u7684<strong>\u65f6\u95f4\u6233\u5728\u7ebf\u8f6c\u6362\u5de5\u5177<\/strong>\u5df2\u7ecf\u505a\u5f97\u975e\u5e38\u7cbe\u7ec6\uff0c\u5b83\u4eec\u901a\u5e38\u652f\u6301\u53cc\u5411\u4e92\u8f6c\uff0c\u8fd8\u80fd\u76f4\u63a5\u8f93\u51faISO 8601\u6216\u5e26\u65f6\u533a\u7684\u5b8c\u6574\u5b57\u7b26\u4e32\u3002\u4ee5\u6211\u5e73\u65f6\u8c03\u8bd5\u5e38\u7528\u7684<a href=\"https:\/\/www.nimail.cn\/dev-tool\/time-format.html\" target=\"_blank\" rel=\"noopener\">time-format\u5de5\u5177\u7ad9<\/a>\u4e3a\u4f8b\uff0c\u5b83\u7684\u754c\u9762\u6781\u5176\u514b\u5236\uff0c\u6ca1\u6709\u5197\u4f59\u7684\u5f39\u7a97\u5e7f\u544a\uff0c\u52a0\u8f7d\u901f\u5ea6\u6781\u5feb\uff0c\u975e\u5e38\u9002\u5408\u5728\u65ad\u7f51\u6216\u5185\u7f51\u6c99\u7bb1\u73af\u5883\u4e0b\u5907\u7528\u3002\u5b83\u7684\u6838\u5fc3\u8bbe\u8ba1\u54f2\u5b66\u5c31\u662f\u201c\u5f00\u7bb1\u5373\u7528\u201d\uff0c\u7b26\u5408\u5f00\u53d1\u8005\u8ffd\u6c42\u6781\u7b80\u64cd\u4f5c\u7684\u4e60\u60ef\u3002<\/p>\n<div class=\"card shadow-sm mb-4\">\n<div class=\"card-body p-4\">\n<h5 class=\"card-title\">\u5e38\u7528\u6362\u7b97\u5bf9\u7167\u53c2\u8003<\/h5>\n<p class=\"text-muted small\">\u4ee5\u4e0b\u4e3a\u5178\u578b\u573a\u666f\u4e0b\u7684\u6570\u503c\u6620\u5c04\uff0c\u65b9\u4fbf\u5feb\u901f\u67e5\u9605\u4e0e\u6838\u5bf9\uff1a<\/p>\n<div class=\"table-responsive\">\n<table class=\"table table-bordered table-hover align-middle mb-0\">\n<thead class=\"table-light\">\n<tr>\n<th>\u8f93\u5165\u7c7b\u578b<\/th>\n<th>\u793a\u4f8b\u6570\u503c<\/th>\n<th>\u5bf9\u5e94\u6807\u51c6\u65f6\u95f4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u79d2\u7ea7 Unix \u65f6\u95f4\u6233<\/td>\n<td>1709251200<\/td>\n<td>2024-03-01 08:00:00 (UTC+8)<\/td>\n<\/tr>\n<tr>\n<td>\u6beb\u79d2\u7ea7 \u5f53\u524d\u65f6\u95f4\u6233<\/td>\n<td>1709251200000<\/td>\n<td>2024-03-01 08:00:00.000 (UTC+8)<\/td>\n<\/tr>\n<tr>\n<td>\u6807\u51c6\u65e5\u671f\u5b57\u7b26\u4e32<\/td>\n<td>2024-03-01 08:00:00<\/td>\n<td>1709251200 (\u79d2\u7ea7)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u7c7b<strong>\u65f6\u95f4\u8f6c\u6362\u5668<\/strong>\u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u5b9e\u65f6\u6e32\u67d3\u3002\u5f53\u4f60\u62d6\u52a8\u6ed1\u5757\u6216\u8005\u7c98\u8d34\u4e00\u4e32\u4e71\u7801\u4f3c\u7684\u6570\u5b57\u65f6\uff0c\u5b83\u80fd\u77ac\u95f4\u5b8c\u6210<strong>\u65f6\u95f4\u6233\u8f6c\u65f6\u95f4<\/strong>\u7684\u64cd\u4f5c\u3002\u5bf9\u4e8e\u9700\u8981\u9891\u7e41\u6bd4\u5bf9\u8bf7\u6c42\u5934\u91cc`X-Timestamp`\u5b57\u6bb5\u7684\u540c\u5b66\u6765\u8bf4\uff0c\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u4e66\u7b7e\u680f\u6536\u85cf\u4e00\u4e2a\u53ef\u9760\u7684<span class=\"badge bg-success\">\u65f6\u95f4\u6233\u5728\u7ebf<\/span>\u5165\u53e3\uff0c\u80fd\u6781\u5927\u51cf\u5c11\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u6253\u65ad\u611f\u3002\u66f4\u91cd\u8981\u7684\u662f\uff0c\u5b83\u901a\u5e38\u5185\u7f6e\u4e86\u590f\u4ee4\u65f6\u548c\u95f0\u79d2\u7684\u8865\u507f\u7b97\u6cd5\uff0c\u4f60\u4e0d\u9700\u8981\u53bb\u7ffbRFC\u6587\u6863\u5c31\u80fd\u5f97\u5230\u51c6\u786e\u7ed3\u679c\u3002<\/p>\n<h2 class=\"mt-4 mb-3\">Python\u5b9e\u6218\uff1a\u624b\u5199\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u811a\u672c<\/h2>\n<p>\u867d\u7136\u5728\u7ebf\u5de5\u5177\u5f88\u65b9\u4fbf\uff0c\u4f46\u4f5c\u4e3a\u5f00\u53d1\u8005\uff0c\u638c\u63e1\u5e95\u5c42\u7684<strong>\u65f6\u95f4\u6233\u8f6c\u65e5\u671f<\/strong>\u903b\u8f91\u4f9d\u7136\u5fc5\u8981\u3002\u7279\u522b\u662f\u5728CI\/CD\u6d41\u6c34\u7ebf\u6216\u8005\u6279\u91cf\u6570\u636e\u5904\u7406\u4efb\u52a1\u4e2d\uff0c\u786c\u7f16\u7801\u4e00\u6bb5\u8f6c\u6362\u811a\u672c\u6bd4\u4f9d\u8d56\u5916\u90e8\u7f51\u9875\u66f4\u5b89\u5168\u3001\u66f4\u9ad8\u6548\u3002\u4e0b\u9762\u8fd9\u6bb5\u57fa\u4e8ePython\u6807\u51c6\u5e93\u7684\u5b9e\u73b0\uff0c\u8986\u76d6\u4e86\u5e38\u89c1\u7684\u79d2\u7ea7\u4e0e\u6beb\u79d2\u7ea7\u5904\u7406\u903b\u8f91\uff0c\u53ef\u4ee5\u76f4\u63a5\u5d4c\u5165\u5230\u4f60\u7684\u5de5\u5177\u94fe\u4e2d\uff1a<\/p>\n<div class=\"bg-dark rounded p-3 mb-4\">\n<pre class=\"mb-0 text-white\" style=\"white-space: pre-wrap; word-wrap: break-word;\"><code>import time\nfrom datetime import datetime, timezone, timedelta\n\ndef format_timestamp(ts, is_ms=False, tz_offset=8):\n    \"\"\"\u7edf\u4e00\u7684\u65f6\u95f4\u6233\u8f6c\u65f6\u95f4\u51fd\u6570\uff0c\u652f\u6301\u81ea\u5b9a\u4e49\u65f6\u533a\u504f\u79fb\"\"\"\n    if is_ms:\n        ts = ts \/ 1000\n    # \u4f7f\u7528 timezone \u663e\u5f0f\u6307\u5b9a\u65f6\u533a\uff0c\u907f\u514d\u672c\u5730\u73af\u5883\u5dee\u5f02\n    dt = datetime.fromtimestamp(ts, tz=timezone(timedelta(hours=tz_offset)))\n    return dt.strftime(\"%Y-%m-%d %H:%M:%S\")\n\n# \u6a21\u62df\u83b7\u53d6\u7f51\u7edc\u63a5\u53e3\u8fd4\u56de\u7684\u6beb\u79d2\u7ea7\u65f6\u95f4\u6233\nraw_data = 1709251200500\nprint(f\"\u89e3\u6790\u7ed3\u679c: {format_timestamp(raw_data, is_ms=True)}\")<\/code><\/pre>\n<\/div>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u903b\u8f91\u975e\u5e38\u76f4\u767d\u3002\u5229\u7528`datetime.fromtimestamp()`\u914d\u5408\u663e\u5f0f\u7684\u65f6\u533a\u5bf9\u8c61\uff0c\u5f7b\u5e95\u675c\u7edd\u4e86\u56e0\u670d\u52a1\u5668\u90e8\u7f72\u5728\u4e0d\u540c\u673a\u623f\u5bfc\u81f4\u7684\u663e\u793a\u504f\u5dee\u3002\u5728\u5b9e\u9645\u4e1a\u52a1\u4e2d\uff0c\u5efa\u8bae\u5c06\u6838\u5fc3\u8f6c\u6362\u903b\u8f91\u5c01\u88c5\u6210\u72ec\u7acb\u6a21\u5757\uff0c\u907f\u514d\u5230\u5904\u5199\u91cd\u590d\u7684`strftime`\u3002\u5f53\u9879\u76ee\u89c4\u6a21\u6269\u5927\u540e\uff0c\u7edf\u4e00\u7684<span class=\"badge bg-info\">\u65f6\u95f4\u8f6c\u6362<\/span>\u89c4\u8303\u80fd\u6709\u6548\u964d\u4f4e\u56e2\u961f\u6c9f\u901a\u6210\u672c\uff0c\u65b0\u6210\u5458\u63a5\u624b\u4ee3\u7801\u65f6\u4e5f\u80fd\u4e00\u773c\u770b\u61c2\u6570\u636e\u6d41\u5411\u3002<\/p>\n<p>\u6700\u540e\u63d0\u9192\u4e00\u53e5\uff0c\u6d89\u53ca\u91d1\u878d\u4ea4\u6613\u6216\u9ad8\u5e76\u53d1\u9501\u5b9a\u65f6\uff0c\u52a1\u5fc5\u786e\u8ba4\u670d\u52a1\u7aef\u4ea4\u4ed8\u7684\u662f\u7cbe\u786e\u5230\u79d2\u8fd8\u662f\u6beb\u79d2\u3002\u5f88\u591a\u770b\u4f3c\u7384\u5b66\u7684\u5ef6\u8fdf\u95ee\u9898\uff0c\u5176\u5b9e\u53ea\u662f\u5355\u4f4d\u6ca1\u5bf9\u9f50\u9020\u6210\u7684\u9519\u89c9\u3002\u517b\u6210\u968f\u624b\u9a8c\u8bc1\u6570\u636e\u7684\u4e60\u60ef\uff0c\u6bd4\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9\u63d2\u4ef6\u90fd\u6765\u5f97\u5b9e\u5728\u3002\u65e5\u5e38\u5f00\u53d1\u4e2d\u4fdd\u6301\u5bf9\u57fa\u7840\u6570\u636e\u7c7b\u578b\u7684\u654f\u611f\uff0c\u5f80\u5f80\u80fd\u8ba9\u4f60\u7684\u67b6\u6784\u8bbe\u8ba1\u66f4\u52a0\u7a33\u5065\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\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":[96,95,35],"class_list":["post-1168","post","type-post","status-publish","format-standard","hentry","category-best-articles","tag-96","tag-95","tag-35"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218 - nimail blog<\/title>\n<meta name=\"description\" content=\"\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\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\/\u5f00\u53d1\u8005\u5fc5\u8bfb-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218 - nimail blog\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.nimail.cn\/best-articles\/\u5f00\u53d1\u8005\u5fc5\u8bfb-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218\/\" \/>\n<meta property=\"og:site_name\" content=\"nimail blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-15T12:25:06+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\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/\",\"url\":\"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/\",\"name\":\"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218 - nimail blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nimail.cn\/#website\"},\"datePublished\":\"2026-07-15T12:25:06+00:00\",\"author\":{\"@id\":\"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af\"},\"description\":\"\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.nimail.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218\"}]},{\"@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":"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218 - nimail blog","description":"\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\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\/\u5f00\u53d1\u8005\u5fc5\u8bfb-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218 - nimail blog","og_description":"\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\u3002","og_url":"https:\/\/blog.nimail.cn\/best-articles\/\u5f00\u53d1\u8005\u5fc5\u8bfb-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218\/","og_site_name":"nimail blog","article_published_time":"2026-07-15T12:25:06+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\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/","url":"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/","name":"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218 - nimail blog","isPartOf":{"@id":"https:\/\/blog.nimail.cn\/#website"},"datePublished":"2026-07-15T12:25:06+00:00","author":{"@id":"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af"},"description":"\u6df1\u5165\u89e3\u6790\u65f6\u95f4\u6233\u5e95\u5c42\u903b\u8f91\uff0c\u5206\u4eab\u5b9e\u7528\u6362\u7b97\u6280\u5de7\u3002\u7ed3\u5408Python\u4ee3\u7801\u4e0e\u5728\u7ebf\u5de5\u5177\u6848\u4f8b\uff0c\u52a9\u4f60\u5feb\u901f\u5b8c\u6210unix\u65f6\u95f4\u6233\u5230\u6807\u51c6\u65e5\u671f\u7684\u7cbe\u51c6\u5904\u7406\uff0c\u5927\u5e45\u63d0\u5347\u65e5\u5e38\u5f00\u53d1\u6548\u7387\u3002","breadcrumb":{"@id":"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.nimail.cn\/best-articles\/%e5%bc%80%e5%8f%91%e8%80%85%e5%bf%85%e8%af%bb-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e4%b8%8e%e6%97%a5%e6%9c%9f%e5%a4%84%e7%90%86%e5%ae%9e%e6%88%98\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.nimail.cn\/"},{"@type":"ListItem","position":2,"name":"\u5f00\u53d1\u8005\u5fc5\u8bfb\uff1a\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u4e0e\u65e5\u671f\u5904\u7406\u5b9e\u6218"}]},{"@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\/1168","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=1168"}],"version-history":[{"count":0,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}