{"id":1172,"date":"2026-07-17T00:25:03","date_gmt":"2026-07-17T00:25:03","guid":{"rendered":"https:\/\/blog.nimail.cn\/?p=1172"},"modified":"2026-07-17T00:25:03","modified_gmt":"2026-07-17T00:25:03","slug":"%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90","status":"publish","type":"post","link":"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/","title":{"rendered":"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350"},"content":{"rendered":"<h2 class=\"mt-4 mb-3\">\u544a\u522b\u624b\u52a8\u8ba1\u7b97\uff0c\u7cbe\u51c6\u7684\u65f6\u95f4\u8f6c\u6362\u5176\u5b9e\u5f88\u7b80\u5355<\/h2>\n<p>\u505a\u540e\u7aef\u5f00\u53d1\u6216\u8005\u5904\u7406\u670d\u52a1\u5668\u65e5\u5fd7\u65f6\uff0c<strong>\u65f6\u95f4\u8f6c\u6362<\/strong>\u51e0\u4e4e\u662f\u6bcf\u5929\u5fc5\u505a\u7684\u65e5\u5e38\u64cd\u4f5c\u3002\u7edd\u5927\u591a\u6570\u5206\u5e03\u5f0f\u7cfb\u7edf\u5e95\u5c42\u8bb0\u5f55\u7684\u5168\u662f\u90a3\u4e00\u4e32\u770b\u4f3c\u6beb\u65e0\u89c4\u5f8b\u7684\u6570\u5b57\uff0c\u4e5f\u5c31\u662f\u4e1a\u754c\u901a\u7528\u7684<strong>unix\u65f6\u95f4\u6233<\/strong>\u3002\u5bf9\u4e8e\u5f88\u591a\u521a\u63a5\u89e6\u8fd0\u7ef4\u76d1\u63a7\u6216\u8005\u6b63\u5728\u6392\u67e5\u7ebf\u4e0a\u6545\u969c\u7684\u5de5\u7a0b\u5e08\u6765\u8bf4\uff0c\u770b\u7740\u90a3\u4e00\u957f\u4e32\u5b57\u7b26\u53bb\u4eba\u5de5\u63a8\u7b97\u201c\u8fd9\u5230\u5e95\u5bf9\u5e94\u54ea\u5e74\u54ea\u6708\u54ea\u5929\u51e0\u70b9\u51e0\u5206\u201d\uff0c\u4e0d\u4ec5\u5bb9\u6613\u770b\u82b1\u773c\uff0c\u8fd8\u6781\u6613\u5f15\u5165\u4eba\u4e3a\u8bef\u5dee\u3002\u8fd9\u65f6\u5019\uff0c\u4e00\u4e2a\u7a33\u5b9a\u53ef\u9760\u7684<strong>\u5728\u7ebf\u65f6\u95f4\u6233<\/strong>\u8f85\u52a9\u5165\u53e3\u5c31\u80fd\u66ff\u4f60\u7701\u4e0b\u5927\u91cf\u7ffb\u65e5\u5386\u3001\u67e5\u516c\u5f0f\u7684\u7410\u788e\u65f6\u95f4\u3002<\/p>\n<div class=\"alert alert-info shadow-sm mb-4\" role=\"alert\">\n  \ud83d\udca1 <strong>\u6838\u5fc3\u63d0\u793a\uff1a<\/strong>\u65e0\u8bba\u662f\u6392\u67e5\u63a5\u53e3\u8d85\u65f6\u5361\u987f\uff0c\u8fd8\u662f\u5206\u6790Nginx\u8bbf\u95ee\u6d41\u6c34\uff0c\u638c\u63e1\u6781\u901f\u7684<strong>\u65f6\u95f4\u6233\u8f6c\u65f6\u95f4<\/strong>\u65b9\u6cd5\uff0c\u80fd\u8ba9\u4f60\u7684\u6392\u9519\u94fe\u8def\u7f29\u77ed\u4e00\u534a\u4ee5\u4e0a\u3002\n<\/div>\n<p>\u6211\u5728\u6700\u8fd1\u7684\u5fae\u670d\u52a1\u9879\u76ee\u91cd\u6784\u4e2d\uff0c\u9ad8\u9891\u4f9d\u8d56 <a href=\"https:\/\/www.nimail.cn\/dev-tool\/time-format.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.nimail.cn\/dev-tool\/time-format.html<\/a> \u8fd9\u4e2a<strong>\u65f6\u95f4\u6233\u5728\u7ebf\u8f6c\u6362\u5de5\u5177<\/strong>\u3002\u5b83\u7684\u4ea4\u4e92\u903b\u8f91\u975e\u5e38\u514b\u5236\uff0c\u6ca1\u6709\u523a\u773c\u7684\u5f39\u7a97\u5e7f\u544a\u6253\u65ad\u601d\u8def\u3002\u8f93\u5165\u6846\u5b8c\u7f8e\u517c\u5bb9\u4e86\u79d2\u7ea7\u548c\u6beb\u79d2\u7ea7\u7684\u539f\u59cb\u6570\u636e\uff0c\u70b9\u51fb\u89e3\u6790\u540e\u77ac\u95f4\u5b8c\u6210<strong>\u65f6\u95f4\u6233\u8f6c\u65e5\u671f<\/strong>\u7684\u53cd\u5411\u6620\u5c04\u3002\u6700\u503c\u5f97\u79f0\u9053\u7684\u662f\u5b83\u5bf9<strong>\u5f53\u524d\u65f6\u95f4\u6233<\/strong>\u7684\u5b9e\u65f6\u6293\u53d6\u529f\u80fd\uff0c\u5f53\u4f60\u9700\u8981\u6821\u9a8c\u67d0\u4e2a\u5b9a\u65f6\u4efb\u52a1\u662f\u5426\u51c6\u65f6\u89e6\u53d1\u65f6\uff0c\u76f4\u63a5\u590d\u5236\u5de6\u4fa7\u751f\u6210\u7684\u6570\u5b57\u53bb\u4ee3\u7801\u91cc\u6bd4\u5bf9\uff0c\u7701\u53bb\u4e86\u624b\u52a8\u8f93\u5165\u53ef\u80fd\u5e26\u6765\u7684\u624b\u6ed1\u9519\u8bef\u3002\u8fd9\u79cd\u7ec6\u8282\u6253\u78e8\uff0c\u6b63\u662f\u4e13\u4e1a\u7ea7<strong>\u65f6\u95f4\u8f6c\u6362\u5668<\/strong>\u548c\u666e\u901a\u7f51\u9875\u5c0f\u5de5\u5177\u7684\u9e3f\u6c9f\u6240\u5728\u3002<\/p>\n<h3 class=\"mt-5 mb-3\">\u4e3a\u4ec0\u4e48\u4f60\u9700\u8981\u4e00\u4e2a\u9760\u8c31\u7684\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\uff1f<\/h3>\n<p>\u7f51\u7edc\u4e0a\u641c\u7d22\u201c<strong>shijianchuo<\/strong>\u201d\u6216\u8005\u76f4\u63a5\u4e22\u5173\u952e\u8bcd\u627e\u5de5\u5177\u7684\u7ed3\u679c\u786e\u5b9e\u4e0d\u5c11\uff0c\u4f46\u771f\u6b63\u80fd\u625b\u4f4f\u9ad8\u5e76\u53d1\u8bf7\u6c42\u4e14\u5e95\u5c42\u903b\u8f91\u4e25\u5bc6\u7684\u5e76\u4e0d\u591a\u89c1\u3002\u5f88\u591a\u65e9\u671f\u4e0a\u7ebf\u7684\u7f51\u9875\u811a\u672c\u53ea\u6b7b\u677f\u5730\u7ed1\u5b9a\u5728UTC+8\u65f6\u533a\u4e0a\uff0c\u4e00\u65e6\u4f60\u5207\u5230\u6d77\u5916\u8282\u70b9\u7684\u670d\u52a1\u5668\u65e5\u5fd7\u8fdb\u884c\u4ea4\u53c9\u9a8c\u8bc1\uff0c\u7ed3\u679c\u5f80\u5f80\u4f1a\u504f\u5dee\u5341\u51e0\u751a\u81f3\u4e8c\u5341\u4e2a\u5c0f\u65f6\u3002\u800c\u524d\u9762\u63d0\u5230\u7684\u8fd9\u6b3e<strong>\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362<\/strong>\u5e73\u53f0\uff0c\u5185\u90e8\u5c01\u88c5\u4e86\u5b8c\u6574\u7684\u65f6\u533a\u504f\u79fb\u7b97\u6cd5\u3002\u5b83\u4e0d\u4ec5\u80fd\u505a\u5355\u5411\u89e3\u6790\uff0c\u8fd8\u652f\u6301\u53cc\u5411\u8054\u52a8\u7f16\u8f91\uff1a\u4f60\u5728\u53f3\u4fa7\u65e5\u5386\u63a7\u4ef6\u91cc\u62d6\u62fd\u9009\u62e9\u5177\u4f53\u7684\u65f6\u5206\u79d2\uff0c\u5de6\u4fa7\u6587\u672c\u6846\u4f1a\u5b9e\u65f6\u56de\u663e\u5bf9\u5e94\u7684\u6570\u5b57\u5e8f\u5217\uff0c\u8fd9\u79cd\u6240\u89c1\u5373\u6240\u5f97\u7684\u4f53\u9a8c\u5bf9\u4e60\u60ef\u8ffd\u6c42\u6781\u81f4\u7684\u5f00\u53d1\u8005\u6765\u8bf4\u975e\u5e38\u987a\u624b\u3002<\/p>\n<div class=\"card shadow-sm mb-4 border-0 bg-light\">\n<div class=\"card-body p-4\">\n<h5 class=\"card-title fw-bold\"><span class=\"badge bg-primary me-2\">DEV TIP<\/span>Python \u73af\u5883\u4e0b\u7684\u6279\u91cf\u6e05\u6d17\u7b56\u7565<\/h5>\n<p class=\"card-text text-muted small\">\u5f53\u4e1a\u52a1\u91cf\u4e0a\u6765\u540e\uff0c\u5076\u5c14\u9700\u8981\u4e00\u6b21\u6027\u6e05\u6d17\u6570\u4e07\u6761\u5386\u53f2\u5f52\u6863\u6570\u636e\uff0c\u7eaf\u9760\u6d4f\u89c8\u5668\u70b9\u9009\u663e\u7136\u6548\u7387\u4f4e\u4e0b\u3002\u4e0b\u9762\u8fd9\u6bb5\u57fa\u4e8e\u6807\u51c6\u5e93\u7684\u8f7b\u91cf\u7ea7\u811a\u672c\uff0c\u80fd\u5e2e\u4f60\u5feb\u901f\u6784\u5efa\u672c\u5730\u7684\u81ea\u52a8\u5316<strong>\u65f6\u95f4\u8f6c\u6362<\/strong>\u6d41\u6c34\u7ebf\uff1a<\/p>\n<pre class=\"bg-dark text-light p-3 rounded w-100\" style=\"overflow-x:auto;\"><code class=\"language-python\">import time\nfrom datetime import datetime, timezone\n\n# \u6a21\u62df\u4ece\u6570\u636e\u5e93\u635e\u51fa\u7684 unix\u65f6\u95f4\u6233\uff08\u901a\u5e38\u4e3a\u79d2\u7ea7\u6574\u6570\uff09\nraw_ts = 1715692800\n\n# \u6807\u51c6\u5316\u683c\u5f0f\u5316\u8f93\u51fa\ndt_obj = datetime.fromtimestamp(raw_ts, tz=timezone.utc)\nprint(f\"UTC\u57fa\u51c6: {dt_obj.strftime('%Y-%m-%d %H:%M:%S')}\")\n\n# \u5904\u7406\u5e38\u89c1\u7684\u6beb\u79d2\u7ea7 shijianchuo \u9677\u9631\nms_ts = 1715692800000\ndt_ms = datetime.fromtimestamp(ms_ts \/ 1000, tz=timezone.utc)\nprint(f\"\u6beb\u79d2\u6821\u51c6: {dt_ms.isoformat(timespec='seconds')}\")<\/code><\/pre>\n<p class=\"mt-2 small text-muted\">* \u7ecf\u9a8c\u4e4b\u8c08\uff1a\u5728\u751f\u4ea7\u73af\u5883\u505a\u6570\u636e\u8fc1\u79fb\u65f6\uff0c\u52a1\u5fc5\u7edf\u4e00\u65f6\u533a\u57fa\u51c6\u3002\u6a21\u7cca\u7684\u672c\u5730\u65f6\u95f4\u8f6c\u6362\u5f80\u5f80\u4f1a\u5f15\u53d1\u96be\u4ee5\u590d\u73b0\u7684\u5e76\u53d1\u7ade\u6001\u6761\u4ef6\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<h3 class=\"mt-5 mb-3\">\u5e95\u5c42\u5dee\u5f02\u4e0e\u9009\u578b\u907f\u5751\u6307\u5357<\/h3>\n<p>\u4e3a\u4e86\u8ba9\u5927\u5bb6\u5728\u9762\u5bf9\u590d\u6742\u5bf9\u63a5\u9700\u6c42\u65f6\u5fc3\u91cc\u6709\u5e95\uff0c\u6211\u68b3\u7406\u4e86\u4e0d\u540c\u65f6\u95f4\u8868\u793a\u6cd5\u7684\u5b9e\u9645\u5e94\u7528\u573a\u666f\u3002\u5f88\u591a\u56e2\u961f\u5728\u521d\u671f\u8bbe\u8ba1\u6570\u636e\u7ed3\u6784\u65f6\u5ffd\u7565\u7cbe\u5ea6\u5bf9\u9f50\uff0c\u5bfc\u81f4\u540e\u671f\u8054\u8c03\u9636\u6bb5\u9891\u9891\u62a5\u9519\u3002\u7406\u89e3\u8fd9\u4e9b\u57fa\u7840\u7ef4\u5ea6\u7684\u533a\u522b\uff0c\u6bd4\u76f2\u76ee\u5806\u780c\u4e2d\u95f4\u4ef6\u66f4\u6709\u4ef7\u503c\u3002<\/p>\n<div class=\"table-responsive mb-4 w-100\">\n<table class=\"table table-bordered table-hover align-middle\">\n<thead class=\"table-light\">\n<tr>\n<th scope=\"col\">\u6570\u636e\u5f62\u6001<\/th>\n<th scope=\"col\">\u5178\u578b\u957f\u5ea6<\/th>\n<th scope=\"col\">\u6700\u4f73\u843d\u5730\u573a\u666f<\/th>\n<th scope=\"col\">\u6613\u8e29\u5751\u70b9\u9884\u8b66<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u79d2\u7ea7 Unix\u65f6\u95f4\u6233<\/td>\n<td>10\u4f4d\u7eaf\u6570\u5b57<\/td>\n<td>\u79fb\u52a8\u7aef\u57cb\u70b9\u4e0a\u62a5\u3001\u4f20\u7edfSOAP\u63a5\u53e3<\/td>\n<td>\u90e8\u5206\u9057\u7559\u6846\u67b6\u5b58\u57282038\u5e74\u6ea2\u51fa\u98ce\u9669<\/td>\n<\/tr>\n<tr>\n<td>\u6beb\u79d2\u7ea7 Unix\u65f6\u95f4\u6233<\/td>\n<td>13\u4f4d\u7eaf\u6570\u5b57<\/td>\n<td>\u5b9e\u65f6\u6d88\u606f\u961f\u5217\u3001\u9ad8\u9891\u4ea4\u6613\u6d41\u6c34<\/td>\n<td>\u524d\u7aefDate.parse()\u89e3\u6790\u5e38\u56e0\u7b26\u53f7\u7f3a\u5931\u62a5\u9519<\/td>\n<\/tr>\n<tr>\n<td>ISO 8601 \u6269\u5c55\u683c\u5f0f<\/td>\n<td>\u5b9a\u957f\u5b57\u7b26\u4e32<\/td>\n<td>\u5bb9\u5668\u5316\u5fae\u670d\u52a1\u95f4\u901a\u4fe1\u3001NoSQL\u5b58\u50a8<\/td>\n<td>\u9700\u4e25\u683c\u6821\u9a8cT\u5206\u9694\u7b26\u4e0eZ\u540e\u7f00\u65f6\u533a\u6807\u8bb0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5b9e\u9645\u63a8\u8fdb\u9879\u76ee\u65f6\uff0c\u7b2c\u4e09\u65b9\u5f00\u653e\u5e73\u53f0\u7684\u63a5\u53e3\u6587\u6863\u5199\u5f97\u518d\u89c4\u8303\uff0c\u4e5f\u62b5\u4e0d\u8fc7\u5b9e\u9645\u6293\u5305\u770b\u5230\u7684\u90a3\u4e9b\u5343\u5947\u767e\u602a\u7684\u53c2\u6570\u7ec4\u5408\u3002\u628a\u5e38\u7528\u7684<strong>\u65f6\u95f4\u6233\u5728\u7ebf<\/strong>\u5730\u5740\u56fa\u5316\u5230\u56e2\u961f\u7684\u77e5\u8bc6\u5e93\u5171\u4eab\u94fe\u63a5\u91cc\uff0c\u914d\u5408\u4e0a\u9762\u63d0\u4f9b\u7684\u4ee3\u7801\u6a21\u677f\u5f62\u6210\u95ed\u73af\uff0c\u57fa\u672c\u80fd\u62b9\u5e7390%\u4ee5\u4e0a\u7684\u683c\u5f0f\u6469\u64e6\u6210\u672c\u3002\u6280\u672f\u6f14\u8fdb\u7684\u672c\u8d28\u5c31\u662f\u4e0d\u65ad\u5c06\u91cd\u590d\u6027\u52b3\u52a8\u5916\u5305\u7ed9\u9ad8\u6548\u5de5\u5177\uff0c\u628a\u5b9d\u8d35\u7684\u8111\u5bb9\u91cf\u91ca\u653e\u7ed9\u6838\u5fc3\u7b97\u6cd5\u4f18\u5316\u4e0e\u67b6\u6784\u5e73\u6ed1\u5347\u7ea7\uff0c\u8fd9\u624d\u662f\u6211\u4eec\u5728\u65e5\u5e38\u8fed\u4ee3\u4e2d\u5e94\u8be5\u79c9\u6301\u7684\u5de5\u7a0b\u601d\u7ef4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\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":[61,37,91],"class_list":["post-1172","post","type-post","status-publish","format-standard","hentry","category-best-articles","tag-61","tag-37","tag-91"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350 - nimail blog<\/title>\n<meta name=\"description\" content=\"\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\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\/\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350 - nimail blog\" \/>\n<meta property=\"og:description\" content=\"\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\u6548\u7387\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.nimail.cn\/best-articles\/\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350\/\" \/>\n<meta property=\"og:site_name\" content=\"nimail blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-17T00:25:03+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\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/\",\"url\":\"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/\",\"name\":\"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350 - nimail blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.nimail.cn\/#website\"},\"datePublished\":\"2026-07-17T00:25:03+00:00\",\"author\":{\"@id\":\"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af\"},\"description\":\"\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\u6548\u7387\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.nimail.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350\"}]},{\"@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":"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350 - nimail blog","description":"\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\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\/\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350\/","og_locale":"zh_CN","og_type":"article","og_title":"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350 - nimail blog","og_description":"\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\u6548\u7387\u3002","og_url":"https:\/\/blog.nimail.cn\/best-articles\/\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898-\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350\/","og_site_name":"nimail blog","article_published_time":"2026-07-17T00:25:03+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\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/","url":"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/","name":"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350 - nimail blog","isPartOf":{"@id":"https:\/\/blog.nimail.cn\/#website"},"datePublished":"2026-07-17T00:25:03+00:00","author":{"@id":"https:\/\/blog.nimail.cn\/#\/schema\/person\/0b0e15eb489135cbe0643e4f5e8839af"},"description":"\u8fd8\u5728\u4e3aUnix\u65f6\u95f4\u6233\u548c\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\u4e92\u76f8\u6362\u7b97\u5934\u75bc\uff1f\u672c\u6587\u6df1\u5ea6\u89e3\u6790\u4e3b\u6d41\u5728\u7ebf\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u7684\u5b9e\u9645\u4f53\u9a8c\uff0c\u9644Python\u5b9e\u6218\u4ee3\u7801\u4e0e\u5bf9\u6bd4\u8868\u683c\uff0c\u52a9\u4f60\u79d2\u61c2\u5e95\u5c42\u903b\u8f91\uff0c\u5927\u5e45\u63d0\u5347\u5f00\u53d1\u8c03\u8bd5\u6548\u7387\u3002","breadcrumb":{"@id":"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.nimail.cn\/best-articles\/%e6%90%9e%e5%ae%9a%e6%97%b6%e9%97%b4%e8%bd%ac%e6%8d%a2%e9%9a%be%e9%a2%98-%e9%ab%98%e6%95%88%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e6%8d%a2%e5%b7%a5%e5%85%b7%e5%ae%9e%e6%b5%8b%e6%8e%a8%e8%8d%90\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.nimail.cn\/"},{"@type":"ListItem","position":2,"name":"\u641e\u5b9a\u65f6\u95f4\u8f6c\u6362\u96be\u9898\uff01\u9ad8\u6548\u65f6\u95f4\u6233\u8f6c\u6362\u5de5\u5177\u5b9e\u6d4b\u63a8\u8350"}]},{"@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\/1172","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=1172"}],"version-history":[{"count":0,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/posts\/1172\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/media?parent=1172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/categories?post=1172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nimail.cn\/wp-json\/wp\/v2\/tags?post=1172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}