{"id":178203,"date":"2024-05-08T19:45:36","date_gmt":"2024-05-08T11:45:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/178203.html"},"modified":"2024-05-08T19:45:42","modified_gmt":"2024-05-08T11:45:42","slug":"%e9%9d%9e%e7%a8%8b%e5%ba%8f%e5%91%98%e5%ad%a6python%e6%9c%89%e4%bb%80%e4%b9%88%e7%94%a8%e5%a4%84%e5%91%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/178203.html","title":{"rendered":"\u975e\u7a0b\u5e8f\u5458\u5b66Python\u6709\u4ec0\u4e48\u7528\u5904\u5462"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27062547\/5f1b0a22-5a2f-47ac-bb3a-dbd1e6b8e2e6.webp\" alt=\"\u975e\u7a0b\u5e8f\u5458\u5b66Python\u6709\u4ec0\u4e48\u7528\u5904\u5462\" \/><\/p>\n<p><p>Python\u5bf9\u975e\u7a0b\u5e8f\u5458\u6765\u8bf4\u6709\u8bb8\u591a\u5b9e\u7528\u6027\uff0c\u4f8b\u5982<strong>\u81ea\u52a8\u5316\u529e\u516c\u3001\u6570\u636e\u5206\u6790\u3001\u7f51\u7edc\u722c\u866b\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3001Web\u5f00\u53d1<\/strong>\u7b49\u3002\u7279\u522b\u662f\u5728<strong>\u6570\u636e\u5206\u6790<\/strong>\u65b9\u9762\uff0c\u975e\u7a0b\u5e8f\u5458\u53ef\u4ee5\u901a\u8fc7Python\u5feb\u901f\u5904\u7406\u5927\u91cf\u6570\u636e\uff0c\u7ed8\u5236\u6570\u636e\u56fe\u8868\uff0c\u4ece\u800c\u83b7\u5f97\u6d1e\u5bdf\u529b\uff0c\u5e2e\u52a9\u51b3\u7b56\u5236\u5b9a\u3002Python\u5f3a\u5927\u7684\u7b2c\u4e09\u65b9\u5e93\u5982Pandas\u548cMatplotlib\uff0c\u4e3a\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u53ef\u89c6\u5316\u63d0\u4f9b\u4e86\u6781\u4e3a\u4fbf\u6377\u7684\u65b9\u6cd5\uff0c\u8fd9\u5bf9\u975e\u7a0b\u5e8f\u5458\u63d0\u9ad8\u6548\u7387\u3001\u6d1e\u6089\u6570\u636e\u8d8b\u52bf\u6709\u7740\u4e0d\u53ef\u6216\u7f3a\u7684\u4f5c\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u81ea\u52a8\u5316\u529e\u516c<\/p>\n<\/p>\n<p><p>\u81ea\u52a8\u5316\u529e\u516c\u662f\u5b66\u4e60Python\u5bf9\u975e\u7a0b\u5e8f\u5458\u6700\u76f4\u63a5\u3001\u6700\u5b9e\u9645\u7684\u7528\u5904\u3002Python\u811a\u672c\u53ef\u4ee5\u7528\u6765\u5904\u7406\u5404\u79cd\u91cd\u590d\u6027\u7684\u529e\u516c\u4efb\u52a1\uff0c\u5982\u6587\u6863\u5904\u7406\u3001\u7535\u5b50\u90ae\u4ef6\u5904\u7406\u7b49\u3002\u901a\u8fc7<strong>Python<\/strong>\u7f16\u5199\u7b80\u5355\u7684\u811a\u672c\uff0c\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<\/p>\n<ul>\n<li>\u4f8b\u5982\uff0c\u4f7f\u7528Python\u7684<strong>openpyxl<\/strong>\u6a21\u5757\u53ef\u4ee5\u8f7b\u677e\u5904\u7406Excel\u6587\u4ef6\uff0c\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u5927\u91cfExcel\u62a5\u8868\u7684\u5de5\u4f5c\u4eba\u5458\u6765\u8bf4\u975e\u5e38\u6709\u7528\u3002\u7c7b\u4f3c\u5730\uff0cPython\u7684<strong>smtplib<\/strong>\u548c<strong>em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l<\/strong>\u5e93\u53ef\u7528\u4e8e\u53d1\u9001\u548c\u89e3\u6790\u7535\u5b50\u90ae\u4ef6\uff0c\u81ea\u52a8\u5316\u65e5\u5e38\u90ae\u4ef6\u901a\u4fe1\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u6570\u636e\u5206\u6790<\/p>\n<\/p>\n<p><p>\u975e\u7a0b\u5e8f\u5458\u901a\u8fc7\u5b66\u4e60Python\u53ef\u4ee5\u83b7\u5f97\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\u3002\u4f7f\u7528Python\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u6bd4\u5982<strong>Pandas\u3001Numpy<\/strong>\uff0c\u80fd\u591f\u5feb\u901f\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u3001\u5904\u7406\u548c\u5206\u6790\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>Pandas<\/strong>\u63d0\u4f9b\u4e86DataFrame\u5bf9\u8c61\uff0c\u65b9\u4fbf\u7528\u6237\u5bf9\u7ed3\u6784\u5316\u6570\u636e\u8fdb\u884c\u9ad8\u6548\u7684\u64cd\u4f5c\u548c\u5206\u6790\u3002\u800c<strong>Numpy<\/strong>\u7528\u4e8e\u5904\u7406\u5927\u578b\u591a\u7ef4\u6570\u7ec4\u548c\u77e9\u9635\uff0c\u4e0e\u6570\u636e\u5206\u6790\u5bc6\u5207\u76f8\u5173\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u7f51\u7edc\u722c\u866b<\/p>\n<\/p>\n<p><p>\u901a\u8fc7Python\u7f16\u5199\u7f51\u7edc\u722c\u866b\u80fd\u5e2e\u52a9\u975e\u7a0b\u5e8f\u5458\u4ece\u4e92\u8054\u7f51\u4e0a\u81ea\u52a8\u5316\u6536\u96c6\u4fe1\u606f\u3002\u8fd9\u5728\u5e02\u573a\u5206\u6790\u3001\u7ade\u4e89\u5bf9\u624b\u7814\u7a76\u7b49\u65b9\u9762\u5f02\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u5982<strong>BeautifulSoup<\/strong>\u548c<strong>Scrapy<\/strong>\u7b49\u5e93\uff0c\u5373\u4f7f\u6ca1\u6709\u6df1\u539a\u7684\u7f16\u7a0b\u57fa\u7840\u4e5f\u80fd\u8f83\u4e3a\u7b80\u5355\u5730\u5b9e\u73b0\u7f51\u9875\u5185\u5bb9\u7684\u63d0\u53d6\u3002<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u673a\u5668\u5b66\u4e60<\/p>\n<\/p>\n<p><p>Python\u5728\u673a\u5668\u5b66\u4e60\u9886\u57df\u4e5f\u5360\u6709\u91cd\u8981\u5730\u4f4d\u3002\u5bf9\u4e8e\u975e\u7a0b\u5e8f\u5458\u6765\u8bf4\uff0c\u8fd9\u610f\u5473\u7740<strong>\u4e86\u89e3\u57fa\u7840\u7684\u673a\u5668\u5b66\u4e60\u6982\u5ff5\u3001\u4f7f\u7528Python\u8fdb\u884c\u6570\u636e\u5efa\u6a21\u548c\u9884\u6d4b<\/strong>\u662f\u53ef\u80fd\u7684\u3002<\/p>\n<\/p>\n<ul>\n<li>\u975e\u7a0b\u5e8f\u5458\u53ef\u4ee5\u501f\u52a9<strong>scikit-learn\u3001TensorFlow\u6216Keras<\/strong>\u7b49\u5e93\u5165\u95e8\u673a\u5668\u5b66\u4e60\uff0c\u5e94\u7528\u4e8e\u6570\u636e\u9884\u6d4b\u3001\u56fe\u50cf\u8bc6\u522b\u7b49\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><p>\u4e94\u3001WEB\u5f00\u53d1<\/p>\n<\/p>\n<p><p>Python\u9002\u5408\u5feb\u901fWeb\u5f00\u53d1\uff0c\u5373\u4fbf\u662f\u975e\u7a0b\u5e8f\u5458\u4e5f\u80fd\u5feb\u901f\u642d\u5efa\u7f51\u7ad9\u3002<strong>Django\u548cFlask<\/strong>\u7b49Web\u6846\u67b6\u7684\u7b80\u5355\u6027\u3001\u6613\u7528\u6027\uff0c\u4f7f\u5f97\u5b66\u4e60\u95e8\u69db\u5927\u5927\u964d\u4f4e\u3002<\/p>\n<\/p>\n<ul>\n<li>\u901a\u8fc7\u5b66\u4e60Django\uff0c\u975e\u7a0b\u5e8f\u5458\u751a\u81f3\u53ef\u4ee5\u5efa\u7acb\u529f\u80fd\u9f50\u5168\u7684\u7f51\u7ad9\uff0c\u4ece\u800c\u6269\u5c55\u81ea\u5df1\u7684\u4e1a\u52a1\u5230\u7f51\u7edc\u7a7a\u95f4\u3002<\/li>\n<\/ul>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. Python\u5bf9\u975e\u7a0b\u5e8f\u5458\u7684\u7528\u5904\u662f\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>Python\u4f5c\u4e3a\u4e00\u79cd\u7b80\u6d01\u6613\u61c2\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5bf9\u975e\u7a0b\u5e8f\u5458\u6765\u8bf4\u4e5f\u6709\u5f88\u591a\u7528\u5904\u3002\u9996\u5148\uff0cPython\u53ef\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\uff0c\u5e2e\u52a9\u975e\u7a0b\u5e8f\u5458\u5904\u7406\u5927\u91cf\u6570\u636e\u5e76\u751f\u6210\u6613\u4e8e\u7406\u89e3\u7684\u56fe\u8868\u548c\u62a5\u544a\u3002\u5176\u6b21\uff0cPython\u53ef\u4ee5\u7528\u4e8e\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u4f8b\u5982\u7f16\u5199\u811a\u672c\u6765\u6279\u91cf\u5904\u7406\u6587\u4ef6\u3001\u53d1\u9001\u90ae\u4ef6\u7b49\u3002\u53e6\u5916\uff0cPython\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u975e\u7a0b\u5e8f\u5458\u8fdb\u884c\u7b80\u5355\u7684Web\u5f00\u53d1\uff0c\u4f8b\u5982\u521b\u5efa\u4e2a\u4eba\u535a\u5ba2\u6216\u8bbe\u8ba1\u7b80\u5355\u7684\u7f51\u9875\u3002\u603b\u4e4b\uff0c\u5b66\u4e60Python\u80fd\u591f\u63d0\u9ad8\u975e\u7a0b\u5e8f\u5458\u7684\u5de5\u4f5c\u6548\u7387\u548c\u89e3\u51b3\u95ee\u9898\u7684\u80fd\u529b\u3002<\/p>\n<p><strong>2. \u975e\u7a0b\u5e8f\u5458\u638c\u63e1Python\u5bf9\u4e2a\u4eba\u804c\u4e1a\u53d1\u5c55\u6709\u4f55\u5e2e\u52a9\uff1f<\/strong><\/p>\n<p>\u638c\u63e1Python\u4f5c\u4e3a\u975e\u7a0b\u5e8f\u5458\u53ef\u4ee5\u4e3a\u4e2a\u4eba\u804c\u4e1a\u53d1\u5c55\u5e26\u6765\u8bb8\u591a\u597d\u5904\u3002\u9996\u5148\uff0cPython\u5728\u4e1a\u754c\u5e94\u7528\u5e7f\u6cdb\uff0c\u5c24\u5176\u5728\u6570\u636e\u5206\u6790\u3001\u673a\u5668\u5b66\u4e60\u548c<a href=\"https:\/\/docs.pingcode.com\/tag\/AI\" target=\"_blank\">\u4eba\u5de5\u667a\u80fd<\/a>\u9886\u57df\u3002\u638c\u63e1Python\u53ef\u4ee5\u4f7f\u975e\u7a0b\u5e8f\u5458\u66f4\u5177\u7ade\u4e89\u529b\uff0c\u62d3\u5bbd\u5c31\u4e1a\u673a\u4f1a\u3002\u5176\u6b21\uff0cPython\u7684\u8bed\u6cd5\u7b80\u6d01\u6613\u5b66\uff0c\u975e\u7a0b\u5e8f\u5458\u53ef\u4ee5\u5feb\u901f\u5b66\u4e60\u5e76\u5728\u5de5\u4f5c\u4e2d\u5e94\u7528\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002\u6b64\u5916\uff0cPython\u7684\u5f00\u6e90\u793e\u533a\u6d3b\u8dc3\uff0c\u6709\u5927\u91cf\u7684\u8d44\u6e90\u548c\u6280\u672f\u652f\u6301\uff0c\u975e\u7a0b\u5e8f\u5458\u53ef\u4ee5\u901a\u8fc7\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u6765\u63d0\u9ad8\u81ea\u5df1\u7684\u6280\u672f\u80fd\u529b\u548c\u7f51\u7edc\u5f71\u54cd\u529b\u3002<\/p>\n<p><strong>3. \u975e\u7a0b\u5e8f\u5458\u5b66\u4e60Python\u6709\u54ea\u4e9b\u8d44\u6e90\u548c\u9014\u5f84\uff1f<\/strong><\/p>\n<p>\u975e\u7a0b\u5e8f\u5458\u5b66\u4e60Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u8d44\u6e90\u548c\u9014\u5f84\u3002\u9996\u5148\uff0c\u6709\u8bb8\u591a\u5728\u7ebf\u5b66\u4e60\u5e73\u53f0\u63d0\u4f9bPython\u8bfe\u7a0b\uff0c\u4f8b\u5982Coursera\u3001Udemy\u548cCodecademy\uff0c\u5b66\u5458\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u5b66\u4e60\u8fdb\u5ea6\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u8bfe\u7a0b\u3002\u5176\u6b21\uff0c\u5728\u7ebf\u6559\u7a0b\u548c\u6587\u6863\u4e5f\u662f\u5b66\u4e60Python\u7684\u597d\u8d44\u6e90\uff0c\u4f8b\u5982Python\u5b98\u65b9\u7f51\u7ad9\u4e0a\u7684\u6559\u7a0b\u548cStack Overflow\u4e0a\u7684\u95ee\u7b54\u793e\u533a\u3002\u6b64\u5916\uff0c\u975e\u7a0b\u5e8f\u5458\u8fd8\u53ef\u4ee5\u53c2\u52a0\u7ebf\u4e0b\u7684\u57f9\u8bad\u73ed\u6216\u7814\u8ba8\u4f1a\uff0c\u4e0e\u5176\u4ed6\u5b66\u4e60\u8005\u4ea4\u6d41\u7ecf\u9a8c\u548c\u5206\u4eab\u5b66\u4e60\u5fc3\u5f97\u3002\u603b\u4e4b\uff0c\u901a\u8fc7\u7efc\u5408\u5229\u7528\u5404\u79cd\u8d44\u6e90\u548c\u9014\u5f84\uff0c\u975e\u7a0b\u5e8f\u5458\u53ef\u4ee5\u5feb\u901f\u6709\u6548\u5730\u5b66\u4e60Python\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5bf9\u975e\u7a0b\u5e8f\u5458\u6765\u8bf4\u6709\u8bb8\u591a\u5b9e\u7528\u6027\uff0c\u4f8b\u5982\u81ea\u52a8\u5316\u529e\u516c\u3001\u6570\u636e\u5206\u6790\u3001\u7f51\u7edc\u722c\u866b\u3001\u673a\u5668\u5b66\u4e60\u3001Web\u5f00\u53d1\u7b49\u3002\u7279\u522b\u662f\u5728\u6570 [&hellip;]","protected":false},"author":3,"featured_media":178212,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/178203"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=178203"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/178203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/178212"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=178203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=178203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=178203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}