{"id":100960,"date":"2026-09-05T20:56:57","date_gmt":"2026-09-05T12:56:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100960.html"},"modified":"2026-09-05T20:56:57","modified_gmt":"2026-09-05T12:56:57","slug":"%e3%80%90python%e9%a1%b9%e7%9b%ae%e5%ae%9e%e6%88%98%e3%80%91%e9%a1%b9%e7%9b%ae%c2%b7excel-%e6%89%b9%e9%87%8f%e6%8a%a5%e8%a1%a8%e5%90%88%e5%b9%b6%ef%bc%9a%e5%87%a0%e5%8d%81%e4%b8%aa%e8%a1%a8%e6%a0%bc","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100960.html","title":{"rendered":"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b"},"content":{"rendered":"<p>\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u9879\u76ee\u4f1a\u660e\u663e\u201c\u53d8\u91cd\u201d\uff1a\u66f4\u591a\u8fb9\u754c\u5904\u7406\u3001\u66f4\u5b8c\u6574\u7684\u53c2\u6570\u3001\u66f4\u63a5\u8fd1\u80fd\u76f4\u63a5\u4ea4\u4ed8\u7ed9\u540c\u4e8b\u4f7f\u7528\u7684\u7a0b\u5ea6\u2014\u2014\u5bf9\u5f97\u8d77\u4f60\u7684\u8ba2\u9605\u3002<\/p>\n<p>\ud83c\udfaf \u672c\u7bc7\u6210\u54c1\uff1a\u4e00\u6761\u547d\u4ee4\uff0c\u628a\u51e0\u5341\u4e2a\u540c\u683c\u5f0f\u7684Excel\u5206\u8868\u5408\u5e76\u6210\u4e00\u4e2a\u603b\u8868\uff0c\u81ea\u52a8\u8bb0\u5f55\u6bcf\u884c\u6570\u636e\u6765\u81ea\u54ea\u4e2a\u6587\u4ef6\u3002 \ud83d\udc3c pandas\u9996\u6b21\u767b\u573a\uff0c\u542b\u6ce8\u91ca110\u884c\u5de6\u53f3\u3002<\/p>\n<hr>\n<h3>\ud83d\udccc \u592a\u957f\u4e0d\u770b\u7248\uff08\u7ed9\u60f3\u5feb\u901f\u4e0a\u624b\u7684\u4f60\uff09<\/h3>\n<table>\n<tr>\n   \u9879\u76ee\u4fe1\u606f<br \/>\n   \u4e00\u53e5\u8bdd\u8bf4\u660e<br \/>\n  <\/tr>\n<tbody>\n<tr>\n<td>\u9879\u76ee\u540d\u79f0<\/td>\n<td>Excel\u6279\u91cf\u62a5\u8868\u5408\u5e76<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u884c\u6570<\/td>\n<td>~110\u884c\uff08\u542b\u6ce8\u91ca\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u4f9d\u8d56<\/td>\n<td>pandas + openpyxl\uff08\u7b2c\u4e00\u6b21\u88c5\u4e24\u4e2a\u5305\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6838\u5fc3\u529f\u80fd<\/td>\n<td>\u4e00\u952e\u5408\u5e76\u540c\u683c\u5f0fExcel \u2192 \u603b\u8868 + \u8ffd\u6eaf\u6765\u6e90<\/td>\n<\/tr>\n<tr>\n<td>\u8dd1\u8d77\u6765\u7684\u547d\u4ee4<\/td>\n<td>python main.py .\/\u5206\u8868<\/td>\n<\/tr>\n<tr>\n<td>\u6838\u5fc3\u77e5\u8bc6\u70b9<\/td>\n<td>pd.read_excel \u2192 pd.concat \u2192 df.to_excel<\/td>\n<\/tr>\n<tr>\n<td>\u505a\u5b8c\u4f60\u80fd\u5f97\u5230<\/td>\n<td>\u6708\u5e952\u5c0f\u65f6\u624b\u5de5\u6d3b \u2192 3\u79d2\u81ea\u52a8\u5b8c\u6210<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h3>\u4e00\u3001\u573a\u666f\u5171\u9e23\uff1a\u6708\u5e95\u7684\u4e24\u5c0f\u65f6\u624b\u5de5\u6d3b<\/h3>\n<p>\u6bcf\u4e2a\u6708\u5e95\uff0c30\u4e2a\u95e8\u5e97\u7684\u9500\u552e\u65e5\u62a5\u8eba\u5728\u6587\u4ef6\u5939\u91cc\uff0c\u4f60\u8981\u628a\u5b83\u4eec\u590d\u5236\u7c98\u8d34\u8fdb\u4e00\u4e2a\u603b\u8868\u2014\u2014Ctrl+C\u3001Ctrl+V\u91cd\u590d30\u6b21\uff0c\u8fd8\u8981\u5c0f\u5fc3\u6f0f\u6389\u54ea\u4e2a\u6587\u4ef6\u3001\u7c98\u9519\u54ea\u4e00\u884c\u3002<\/p>\n<p>\u8fd9\u4e2a\u6d3b\u6bcf\u6708\u5403\u6389\u4f60\u4e24\u5c0f\u65f6\uff0c\u4e00\u5e74\u5c31\u662f\u4e00\u5929\u3002<\/p>\n<p>\ud83d\udccc \u672c\u7bc7\u4e4b\u540e\uff0c\u5b83\u53d8\u6210\u4e00\u6761\u547d\u4ee4\uff0c\u8017\u65f63\u79d2\uff1a<\/p>\n<p>$ python main.py .\/\u5206\u8868<br \/>\n\u8bfb\u53d6 \u95e8\u5e9701.xlsx\uff1a128\u884c<br \/>\n\u8bfb\u53d6 \u95e8\u5e9702.xlsx\uff1a131\u884c<br \/>\n\u8bfb\u53d6 \u95e8\u5e9703.xlsx\uff1a96\u884c<br \/>\n&#8230;<br \/>\n\u5408\u5e76\u5b8c\u6210\uff1a12 \u4e2a\u6587\u4ef6\uff0c\u5171 1503 \u884c \u2192 \u5408\u5e76\u603b\u8868.xlsx<\/p>\n<hr>\n<h3>\u4e8c\u3001\u524d\u7f6e\u77e5\u8bc6\uff1apandas\u56db\u5927\u4ef6\uff08\u5148\u5efa\u7acb\u6982\u5ff5\u56fe\uff09<\/h3>\n<p>pandas\u662fPython\u6570\u636e\u5904\u7406\u7684\u5934\u53f7\u5de5\u5177\uff0c\u672c\u7bc7\u53ea\u7528\u5b83\u6700\u57fa\u7840\u7684\u56db\u4ef6\uff1a<\/p>\n<table>\n<tr>\n   \u56db\u5927\u4ef6<br \/>\n   \u5199\u6cd5<br \/>\n   \u4e00\u53e5\u8bdd\u89e3\u91ca<br \/>\n  <\/tr>\n<tbody>\n<tr>\n<td>\ud83d\udce5 \u88c5\u8fdb\u5185\u5b58<\/td>\n<td>pd.read_excel(\u6587\u4ef6)<\/td>\n<td>\u8bfb\u51fa\u4e00\u5f20\u201c\u667a\u80fd\u8868\u683c\u201d\u2014\u2014DataFrame<\/td>\n<\/tr>\n<tr>\n<td>\ud83d\udcca DataFrame<\/td>\n<td>\u2014<\/td>\n<td>\u201c\u5e26\u884c\u5217\u7f16\u53f7\u7684\u667a\u80fd\u8868\u683c\u201d\uff0cpandas\u7684\u4e00\u5207\u6838\u5fc3<\/td>\n<\/tr>\n<tr>\n<td>\ud83d\udcda \u7eb5\u5411\u62fc\u63a5<\/td>\n<td>pd.concat([\u88681, \u88682])<\/td>\n<td>\u628a\u591a\u5f20\u540c\u7ed3\u6784\u8868\u683c\u4e0a\u4e0b\u645e\u8d77\u6765<\/td>\n<\/tr>\n<tr>\n<td>\ud83d\udcbe \u5199\u56de\u78c1\u76d8<\/td>\n<td>df.to_excel(\u6587\u4ef6)<\/td>\n<td>\u5b58\u6210Excel\uff0cindex=False\u4e0d\u5199\u884c\u53f7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\ud83d\udccc \u4e24\u70b9\u8bf4\u660e<\/h4>\n<table>\n<tr>\n   \u8bf4\u660e<br \/>\n   \u8be6\u60c5<br \/>\n  <\/tr>\n<tbody>\n<tr>\n<td>\u4e3a\u4ec0\u4e48\u8981\u88c5\u4e24\u4e2a\u5305<\/td>\n<td>pandas\u7ba1\u8868\u683c\u903b\u8f91\uff0copenpyxl\u7ba1Excel\u6587\u4ef6\u683c\u5f0f\u3002\u7f3a\u4e00\u4e0d\u53ef<\/td>\n<\/tr>\n<tr>\n<td>\u4e3a\u4ec0\u4e48\u7528xlsx\u4e0d\u662fCSV<\/td>\n<td>CSV\u91cc\u4e2d\u6587\u5728Excel\u76f4\u63a5\u6253\u5f00\u5bb9\u6613\u4e71\u7801\uff0cxlsx\u7a33\u3002\u540e\u9762\u722c\u866b\u5b58\u6570\u636e\u65f6\u4f60\u4f1a\u89c1\u5230CSV\u7684\u4e3b\u573a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<h3>\u4e09\u3001\u7b2c0\u6b65\uff1asetup\u2014\u2014\u4f9d\u8d56\u7b2c\u4e00\u6b21\u201c\u6210\u53cc\u201d<\/h3>\n<p>1. \u65b0\u5efa\u6587\u4ef6\u5939 excel_merge\uff0cVSCode\u6253\u5f00<br \/>\n2. python -m venv venv &amp;&amp; \u6fc0\u6d3bvenv<br \/>\n3. git init + .gitignore<br \/>\n4. pip install pandas openpyxl   # \ud83d\ude80 \u7b2c\u4e00\u6b21\u88c5\u4e24\u4e2a\u5305<br \/>\n5. pip freeze &gt; requirements.txt<\/p>\n<p>\u6253\u5f00requirements.txt\u770b\u4e00\u773c\uff1a\u8fd9\u6b21\u4e0d\u6b62\u4e00\u884c\u4e86\u2014\u2014pandas\u5e26\u7740\u81ea\u5df1\u7684\u4f9d\u8d56\uff08numpy\u7b49\uff09\u4e00\u8d77\u8fdb\u6765\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u4e4b\u524d\u8bf4\u7684\u201c\u4f9d\u8d56\u4f1a\u6eda\u96ea\u7403\u201d\uff0c\u4e5f\u662f\u4e3a\u4ec0\u4e48\u865a\u62df\u73af\u5883\u4ece\u7b2c\u4e00\u4e2a\u9879\u76ee\u5c31\u8981\u5efa\u3002<\/p>\n<hr>\n<h3>\u56db\u3001\u7b2c1\u6b65\uff1a\u627e\u6587\u4ef6\u2014\u2014\u5148\u6392\u9664\u201c\u5047xlsx\u201d<\/h3>\n<p><span class=\"token triple-quoted-string string\">\\&#8221;\\&#8221;\\&#8221;merge_excel \u2014\u2014 \u6279\u91cf\u5408\u5e76\u540c\u683c\u5f0fExcel\u62a5\u8868\\&#8221;\\&#8221;\\&#8221;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> argparse<br \/>\n<span class=\"token keyword\">from<\/span> pathlib <span class=\"token keyword\">import<\/span> Path<\/p>\n<p><span class=\"token keyword\">import<\/span> pandas <span class=\"token keyword\">as<\/span> pd<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">find_xlsx<\/span><span class=\"token punctuation\">(<\/span>folder<span class=\"token punctuation\">:<\/span> Path<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">[<\/span>Path<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">\\&#8221;\\&#8221;\\&#8221;\u627e\u51fa\u6240\u6709\u771f\u6b63\u7684xlsx\uff08\u6392\u9664Excel\u6253\u5f00\u65f6\u4ea7\u751f\u7684\u4e34\u65f6\u9501\u6587\u4ef6\uff09\\&#8221;\\&#8221;\\&#8221;<\/span><br \/>\n    files <span class=\"token operator\">=<\/span> <span class=\"token builtin\">sorted<\/span><span class=\"token punctuation\">(<\/span>folder<span class=\"token punctuation\">.<\/span>glob<span class=\"token punctuation\">(<\/span><span class=\"token string\">\\&#8221;*.xlsx\\&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">[<\/span>f <span class=\"token keyword\">for<\/span> f <span class=\"token keyword\">in<\/span> files <span class=\"token keyword\">if<\/span> <span class=\"token keyword\">not<\/span> f<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">.<\/span>startswith<span class=\"token punctuation\">(<\/span><span class=\"token string\">\\&#8221;~$\\&#8221;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p>\ud83c\udfaf \u90a3\u4e00\u884c~$\u8fc7\u6ee4\u662f\u672c\u7bc7\u7b2c\u4e00\u4e2a\u5b9e\u6218\u5f69\u86cb\uff1a<\/p>\n<p>\ud83d\udca1 Excel\u5f00\u7740\u67d0\u4e2a\u6587\u4ef6\u65f6\uff0c\u4f1a\u5728\u540c\u76ee\u5f55\u7559\u4e0b~$\u6587\u4ef6\u540d.xlsx\u7684\u4e34\u65f6\u9501\u6587\u4ef6\u2014\u2014\u5b83\u957f\u5f97\u50cf\u6570\u636e\u6587\u4ef6\uff0c\u5185\u5bb9\u5374\u662f\u4e71\u7801\uff0c\u4e0d\u8fc7\u6ee4\u6389\u5c31\u4f1a\u6df7\u8fdb\u5408\u5e76\u7ed3\u679c\uff08\u7b2c\u4e5d\u8282\u2461\u73b0\u573a\u8868\u6f14\uff09\u3002<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u9879\u76ee\u4f1a\u660e\u663e\u201c\u53d8\u91cd\u201d\uff1a\u66f4\u591a\u8fb9\u754c\u5904\u7406\u3001\u66f4\u5b8c\u6574\u7684\u53c2\u6570\u3001\u66f4\u63a5\u8fd1\u80fd\u76f4\u63a5\u4ea4\u4ed8\u7ed9\u540c\u4e8b\u4f7f\u7528\u7684\u7a0b\u5ea6\u2014\u2014\u5bf9\u5f97\u8d77\u4f60\u7684\u8ba2\u9605\u3002 \ud83c\udfaf \u672c\u7bc7\u6210\u54c1\uff1a\u4e00\u6761\u547d\u4ee4\uff0c\u628a\u51e0\u5341\u4e2a\u540c\u683c\u5f0f\u7684Excel\u5206\u8868\u5408\u5e76\u6210\u4e00\u4e2a\u603b\u8868\uff0c\u81ea\u52a8\u8bb0\u5f55\u6bcf\u884c\u6570\u636e\u6765\u81ea\u54ea\u4e2a\u6587\u4ef6\u3002 \ud83d\udc3c pandas\u9996\u6b21\u767b\u573a\uff0c\u542b\u6ce8\u91ca110\u884c\u5de6\u53f3\u3002 \ud83d\udccc \u592a\u957f\u4e0d\u770b\u7248\uff08\u7ed9\u60f3\u5feb\u901f\u4e0a\u624b\u7684\u4f60\uff09 \u9879\u76ee\u4fe1\u606f \u4e00\u53e5\u8bdd\u8bf4\u660e \u9879\u76ee\u540d\u79f0 Excel\u6279\u91cf\u62a5\u8868\u5408\u5e76 \u4ee3\u7801\u884c\u6570 ~110\u884c\uff08\u542b\u6ce8\u91ca\uff09 \u4f9d\u8d56 pandas + openpyxl\uff08\u7b2c\u4e00\u6b21\u88c5\u4e24\u4e2a\u5305\uff09 \u6838\u5fc3\u529f\u80fd \u4e00\u952e\u5408\u5e76\u540c\u683c\u5f0fE<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1374,81,190],"topic":[],"class_list":["post-100960","post","type-post","status-publish","format-standard","hentry","category-server","tag-excel","tag-python","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/100960.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u9879\u76ee\u4f1a\u660e\u663e\u201c\u53d8\u91cd\u201d\uff1a\u66f4\u591a\u8fb9\u754c\u5904\u7406\u3001\u66f4\u5b8c\u6574\u7684\u53c2\u6570\u3001\u66f4\u63a5\u8fd1\u80fd\u76f4\u63a5\u4ea4\u4ed8\u7ed9\u540c\u4e8b\u4f7f\u7528\u7684\u7a0b\u5ea6\u2014\u2014\u5bf9\u5f97\u8d77\u4f60\u7684\u8ba2\u9605\u3002 \ud83c\udfaf \u672c\u7bc7\u6210\u54c1\uff1a\u4e00\u6761\u547d\u4ee4\uff0c\u628a\u51e0\u5341\u4e2a\u540c\u683c\u5f0f\u7684Excel\u5206\u8868\u5408\u5e76\u6210\u4e00\u4e2a\u603b\u8868\uff0c\u81ea\u52a8\u8bb0\u5f55\u6bcf\u884c\u6570\u636e\u6765\u81ea\u54ea\u4e2a\u6587\u4ef6\u3002 \ud83d\udc3c pandas\u9996\u6b21\u767b\u573a\uff0c\u542b\u6ce8\u91ca110\u884c\u5de6\u53f3\u3002 \ud83d\udccc \u592a\u957f\u4e0d\u770b\u7248\uff08\u7ed9\u60f3\u5feb\u901f\u4e0a\u624b\u7684\u4f60\uff09 \u9879\u76ee\u4fe1\u606f \u4e00\u53e5\u8bdd\u8bf4\u660e \u9879\u76ee\u540d\u79f0 Excel\u6279\u91cf\u62a5\u8868\u5408\u5e76 \u4ee3\u7801\u884c\u6570 ~110\u884c\uff08\u542b\u6ce8\u91ca\uff09 \u4f9d\u8d56 pandas + openpyxl\uff08\u7b2c\u4e00\u6b21\u88c5\u4e24\u4e2a\u5305\uff09 \u6838\u5fc3\u529f\u80fd \u4e00\u952e\u5408\u5e76\u540c\u683c\u5f0fE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100960.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-05T12:56:57+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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.wsisp.com\/helps\/100960.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100960.html\",\"name\":\"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-05T12:56:57+00:00\",\"dateModified\":\"2026-09-05T12:56:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100960.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100960.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100960.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/100960.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u9879\u76ee\u4f1a\u660e\u663e\u201c\u53d8\u91cd\u201d\uff1a\u66f4\u591a\u8fb9\u754c\u5904\u7406\u3001\u66f4\u5b8c\u6574\u7684\u53c2\u6570\u3001\u66f4\u63a5\u8fd1\u80fd\u76f4\u63a5\u4ea4\u4ed8\u7ed9\u540c\u4e8b\u4f7f\u7528\u7684\u7a0b\u5ea6\u2014\u2014\u5bf9\u5f97\u8d77\u4f60\u7684\u8ba2\u9605\u3002 \ud83c\udfaf \u672c\u7bc7\u6210\u54c1\uff1a\u4e00\u6761\u547d\u4ee4\uff0c\u628a\u51e0\u5341\u4e2a\u540c\u683c\u5f0f\u7684Excel\u5206\u8868\u5408\u5e76\u6210\u4e00\u4e2a\u603b\u8868\uff0c\u81ea\u52a8\u8bb0\u5f55\u6bcf\u884c\u6570\u636e\u6765\u81ea\u54ea\u4e2a\u6587\u4ef6\u3002 \ud83d\udc3c pandas\u9996\u6b21\u767b\u573a\uff0c\u542b\u6ce8\u91ca110\u884c\u5de6\u53f3\u3002 \ud83d\udccc \u592a\u957f\u4e0d\u770b\u7248\uff08\u7ed9\u60f3\u5feb\u901f\u4e0a\u624b\u7684\u4f60\uff09 \u9879\u76ee\u4fe1\u606f \u4e00\u53e5\u8bdd\u8bf4\u660e \u9879\u76ee\u540d\u79f0 Excel\u6279\u91cf\u62a5\u8868\u5408\u5e76 \u4ee3\u7801\u884c\u6570 ~110\u884c\uff08\u542b\u6ce8\u91ca\uff09 \u4f9d\u8d56 pandas + openpyxl\uff08\u7b2c\u4e00\u6b21\u88c5\u4e24\u4e2a\u5305\uff09 \u6838\u5fc3\u529f\u80fd \u4e00\u952e\u5408\u5e76\u540c\u683c\u5f0fE","og_url":"https:\/\/www.wsisp.com\/helps\/100960.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-05T12:56:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100960.html","url":"https:\/\/www.wsisp.com\/helps\/100960.html","name":"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-05T12:56:57+00:00","dateModified":"2026-09-05T12:56:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100960.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100960.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100960.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Python\u9879\u76ee\u5b9e\u6218\u3011\u9879\u76ee\u00b7Excel \u6279\u91cf\u62a5\u8868\u5408\u5e76\uff1a\u51e0\u5341\u4e2a\u8868\u683c\u4e00\u952e\u6c47\u603b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=100960"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100960\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100960"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}