﻿{"id":3976,"date":"2025-12-18T13:33:16","date_gmt":"2025-12-18T05:33:16","guid":{"rendered":"http:\/\/www.jiayus.com\/?p=3976"},"modified":"2025-12-18T13:33:16","modified_gmt":"2025-12-18T05:33:16","slug":"python-%e7%88%ac%e8%99%ab%e6%88%90%e5%b0%8f%e7%ba%a2%e4%b9%a6%e8%88%86%e6%83%85%e7%9b%91%e6%b5%8b%e6%a0%b8%e5%bf%83%e6%8a%80%e6%9c%af-%e5%90%88%e8%a7%84%e9%87%87%e9%9b%86%e4%b8%8e%e7%b2%be%e5%87%86","status":"publish","type":"post","link":"http:\/\/www.jiayus.com\/?p=3976","title":{"rendered":"Python \u722c\u866b\u6210\u5c0f\u7ea2\u4e66\u8206\u60c5\u76d1\u6d4b\u6838\u5fc3\u6280\u672f \u5408\u89c4\u91c7\u96c6\u4e0e\u7cbe\u51c6\u5206\u6790\u53cc\u7ebf\u5e76\u884c"},"content":{"rendered":"\n<p>\u4f5c\u4e3a\u805a\u96c6\u8d85 2.6 \u4ebf\u6708\u6d3b\u7528\u6237\u7684\u751f\u6d3b\u65b9\u5f0f\u793e\u533a\uff0c\u5c0f\u7ea2\u4e66\u5df2\u6210\u4e3a\u8206\u60c5\u76d1\u6d4b\u9886\u57df\u7684\u6838\u5fc3\u6570\u636e\u6765\u6e90 \u2014\u2014 \u7528\u6237\u81ea\u53d1\u5206\u4eab\u7684\u4ea7\u54c1\u8bc4\u4ef7\u3001\u6d88\u8d39\u4f53\u9a8c\u3001\u70ed\u70b9\u8ba8\u8bba\u7b49\u5185\u5bb9\uff0c\u8574\u542b\u7740\u771f\u5b9e\u7684\u5e02\u573a\u60c5\u7eea\u4e0e\u6d88\u8d39\u8d8b\u52bf\u3002Python \u8bed\u8a00\u51ed\u501f\u5176\u9ad8\u6548\u3001\u7075\u6d3b\u3001\u5f00\u6e90\u7684\u6280\u672f\u4f18\u52bf\uff0c\u6210\u4e3a\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u91c7\u96c6\u5c0f\u7ea2\u4e66\u6570\u636e\u7684\u4e3b\u6d41\u5de5\u5177\uff0c\u901a\u8fc7\u6807\u51c6\u5316\u722c\u866b\u6846\u67b6\u5b9e\u73b0\u5408\u89c4\u6570\u636e\u83b7\u53d6\uff0c\u4e3a\u54c1\u724c\u58f0\u8a89\u7ba1\u7406\u3001\u5e02\u573a\u9700\u6c42\u6316\u6398\u3001\u5371\u673a\u98ce\u9669\u9884\u8b66\u63d0\u4f9b\u7cbe\u51c6\u652f\u6491\uff0c\u63a8\u52a8\u8206\u60c5\u76d1\u6d4b\u4ece \u201c\u5e7f\u57df\u8986\u76d6\u201d \u5411 \u201c\u6df1\u5ea6\u6d1e\u5bdf\u201d \u5347\u7ea7\u3002\u200b<\/p>\n\n\n\n<p>\u6280\u672f\u903b\u8f91\uff1aPython \u722c\u866b\u6784\u5efa\u5c0f\u7ea2\u4e66\u6570\u636e\u91c7\u96c6\u95ed\u73af\u200b<\/p>\n\n\n\n<p>\u5c0f\u7ea2\u4e66\u6570\u636e\u5177\u6709 \u201c\u5185\u5bb9\u788e\u7247\u5316\u3001\u5f62\u5f0f\u591a\u6a21\u6001\uff08\u6587\u672c + \u56fe\u7247 + \u89c6\u9891\uff09\u3001\u4e92\u52a8\u6027\u5f3a\u201d \u7684\u7279\u5f81\uff0c\u4f20\u7edf\u91c7\u96c6\u65b9\u5f0f\u96be\u4ee5\u9ad8\u6548\u63d0\u53d6\u6709\u6548\u4fe1\u606f\u3002Python \u8bed\u8a00\u901a\u8fc7\u591a\u5e93\u534f\u540c\u4e0e\u6a21\u5757\u5316\u5f00\u53d1\uff0c\u6784\u5efa\u8d77 \u201c\u5b9a\u5411\u6293\u53d6 &#8211; \u6570\u636e\u6e05\u6d17 &#8211; \u7ed3\u6784\u5316\u8f93\u51fa\u201d \u7684\u5b8c\u6574\u91c7\u96c6\u94fe\u8def\uff0c\u6210\u4e3a\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u7684\u6838\u5fc3\u6280\u672f\u5e95\u5ea7\u3002\u200b<\/p>\n\n\n\n<p>\u5728\u6570\u636e\u6293\u53d6\u73af\u8282\uff0cPython \u4f9d\u6258Scrapy\u201crequests\u201d \u7b49\u722c\u866b\u6846\u67b6\uff0c\u53ef\u5b9e\u73b0\u5bf9\u5c0f\u7ea2\u4e66\u5173\u952e\u8bcd\u641c\u7d22\u7ed3\u679c\u3001\u8bdd\u9898\u9875\u5185\u5bb9\u3001\u8fbe\u4eba\u8d26\u53f7\u52a8\u6001\u3001\u8bc4\u8bba\u533a\u4e92\u52a8\u7b49\u591a\u7ef4\u5ea6\u6570\u636e\u7684\u5b9a\u5411\u91c7\u96c6\u3002\u901a\u8fc7\u6a21\u62df\u6d4f\u89c8\u5668\u884c\u4e3a\u3001\u8bbe\u7f6e\u5408\u7406\u8bf7\u6c42\u9891\u7387\u3001\u52a8\u6001\u8c03\u6574 IP \u4ee3\u7406\u7b49\u6280\u672f\u624b\u6bb5\uff0c\u89c4\u907f\u5e73\u53f0\u53cd\u722c\u673a\u5236\uff0c\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u7a33\u5b9a\u6027\u4e0e\u6301\u7eed\u6027\u3002\u4f8b\u5982\uff0c\u9488\u5bf9 \u201c\u67d0\u7f8e\u5986\u54c1\u724c\u4ea7\u54c1\u8bc4\u4ef7\u201d \u7684\u8206\u60c5\u76d1\u6d4b\u9700\u6c42\uff0c\u722c\u866b\u53ef\u7cbe\u51c6\u5b9a\u4f4d\u5305\u542b\u8be5\u54c1\u724c\u5173\u952e\u8bcd\u7684\u7b14\u8bb0\u5185\u5bb9\uff0c\u540c\u6b65\u6293\u53d6\u53d1\u5e03\u65f6\u95f4\u3001\u4f5c\u8005\u753b\u50cf\u3001\u70b9\u8d5e \/ \u6536\u85cf \/ \u8bc4\u8bba\u6570\u636e\u3001\u5730\u7406\u5b9a\u4f4d\u7b49\u5173\u8054\u4fe1\u606f\uff0c\u5b9e\u73b0 \u201c\u5185\u5bb9 + \u4e92\u52a8 + \u7528\u6237\u201d \u7684\u5168\u57df\u6570\u636e\u8986\u76d6\u3002\u200b<\/p>\n\n\n\n<p>\u6570\u636e\u6e05\u6d17\u4e0e\u89e3\u6790\u662f\u6280\u672f\u6838\u5fc3\u73af\u8282\u3002\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u5e38\u5305\u542b\u8868\u60c5\u7b26\u53f7\u3001\u7f51\u7edc\u4fda\u8bed\u3001\u8bdd\u9898\u6807\u7b7e\uff08Hashtag\uff09\u7b49\u975e\u7ed3\u6784\u5316\u5185\u5bb9\uff0cPython \u901a\u8fc7BeautifulSoup\u201clxml\u201d \u7b49\u89e3\u6790\u5e93\u63d0\u53d6\u6587\u672c\u3001\u56fe\u7247\u94fe\u63a5\u3001\u89c6\u9891\u5e27\u7b49\u6838\u5fc3\u6570\u636e\uff0c\u518d\u501f\u52a9jieba\u5206\u8bcd\u3001pandas\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5254\u9664\u65e0\u6548\u4fe1\u606f\u3001\u7edf\u4e00\u6570\u636e\u683c\u5f0f\uff0c\u5b8c\u6210 \u201c\u539f\u59cb\u6570\u636e &#8211; \u7ed3\u6784\u5316\u6570\u636e\u201d \u7684\u8f6c\u5316\u3002\u9488\u5bf9\u591a\u6a21\u6001\u5185\u5bb9\uff0cPython \u53ef\u8054\u52a8PIL\u56fe\u50cf\u5904\u7406\u5e93\u3001pytesseractOCR \u5de5\u5177\uff0c\u63d0\u53d6\u56fe\u7247\u4e2d\u7684\u6587\u5b57\u4fe1\u606f\uff08\u5982\u4ea7\u54c1\u5305\u88c5\u8bf4\u660e\u3001\u624b\u5199\u4f53\u9a8c\u7b14\u8bb0\uff09\uff0c\u5b9e\u73b0\u6587\u672c\u6570\u636e\u7684\u5168\u9762\u6355\u6349\uff0c\u4e3a\u540e\u7eed\u8206\u60c5\u5206\u6790\u63d0\u4f9b\u5b8c\u6574\u6570\u636e\u57fa\u7840\u3002\u200b<\/p>\n\n\n\n<p>\u7ed3\u6784\u5316\u8f93\u51fa\u73af\u8282\uff0cPython \u722c\u866b\u53ef\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u4ee5 CSV\u3001JSON \u7b49\u901a\u7528\u683c\u5f0f\u5bfc\u51fa\uff0c\u76f4\u63a5\u5bf9\u63a5\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u7684\u5206\u6790\u7cfb\u7edf\uff0c\u652f\u6301\u6309\u65f6\u95f4\u7ef4\u5ea6\u3001\u60c5\u611f\u503e\u5411\u3001\u8bdd\u9898\u70ed\u5ea6\u7b49\u591a\u6761\u4ef6\u7b5b\u9009\uff0c\u4e3a\u8206\u60c5\u7814\u5224\u63d0\u4f9b\u9ad8\u6548\u6570\u636e\u652f\u6491\u3002\u6570\u636e\u663e\u793a\uff0c\u57fa\u4e8e Python \u722c\u866b\u7684\u5c0f\u7ea2\u4e66\u6570\u636e\u91c7\u96c6\u6548\u7387\u8f83\u4f20\u7edf\u5de5\u5177\u63d0\u5347 40% \u4ee5\u4e0a\uff0c\u5355\u5173\u952e\u8bcd\u5355\u65e5\u53ef\u91c7\u96c6\u6709\u6548\u7b14\u8bb0\u6570\u636e\u8d85 1.2 \u4e07\u6761\uff0c\u4e14\u6570\u636e\u51c6\u786e\u7387\u7ef4\u6301\u5728 92% \u4ee5\u4e0a\u3002\u200b<\/p>\n\n\n\n<p>\u5408\u89c4\u8fb9\u754c\uff1a\u6280\u672f\u5e94\u7528\u575a\u5b88\u5e73\u53f0\u89c4\u5219\u4e0e\u6cd5\u5f8b\u5e95\u7ebf\u200b<\/p>\n\n\n\n<p>\u968f\u7740\u6570\u636e\u5b89\u5168\u76d1\u7ba1\u7684\u65e5\u8d8b\u4e25\u683c\uff0cPython \u722c\u866b\u5728\u5c0f\u7ea2\u4e66\u6570\u636e\u91c7\u96c6\u8fc7\u7a0b\u4e2d\uff0c\u59cb\u7ec8\u4ee5 \u201c\u5408\u89c4\u201d \u4e3a\u6838\u5fc3\u524d\u63d0\uff0c\u907f\u514d\u89e6\u78b0\u6cd5\u5f8b\u7ea2\u7ebf\u4e0e\u5e73\u53f0\u89c4\u5219\u3002\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u7684 Python \u722c\u866b\u6280\u672f\u666e\u904d\u9075\u5faa\u4e09\u5927\u539f\u5219\uff1a\u200b<\/p>\n\n\n\n<p>\u4e00\u662f\u575a\u5b88 \u201c\u516c\u5f00\u6570\u636e\u201d \u91c7\u96c6\u5e95\u7ebf\uff0c\u4ec5\u9488\u5bf9\u5c0f\u7ea2\u4e66\u5e73\u53f0\u516c\u5f00\u53ef\u89c1\u7684\u7b14\u8bb0\u5185\u5bb9\u3001\u8bc4\u8bba\u4e92\u52a8\u7b49\u6570\u636e\u8fdb\u884c\u91c7\u96c6\uff0c\u7edd\u4e0d\u83b7\u53d6\u7528\u6237\u9690\u79c1\u4fe1\u606f\uff08\u5982\u672a\u516c\u5f00\u7684\u4e2a\u4eba\u8054\u7cfb\u65b9\u5f0f\u3001\u79c1\u4fe1\u5185\u5bb9\u3001\u6d4f\u89c8\u5386\u53f2\u7b49\uff09\uff0c\u4e25\u683c\u9075\u5b88\u300a\u7f51\u7edc\u5b89\u5168\u6cd5\u300b\u300a\u4e2a\u4eba\u4fe1\u606f\u4fdd\u62a4\u6cd5\u300b\u7b49\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\u3002\u200b<\/p>\n\n\n\n<p>\u4e8c\u662f\u5c0a\u91cd\u5e73\u53f0 robots \u534f\u8bae\u4e0e\u7528\u6237\u6743\u76ca\uff0c\u901a\u8fc7\u5c0f\u7ea2\u4e66\u5f00\u653e\u5e73\u53f0 API \u63a5\u53e3\u4f18\u5148\u83b7\u53d6\u6570\u636e\uff0c\u5728 API \u63a5\u53e3\u8986\u76d6\u8303\u56f4\u5916\u7684\u516c\u5f00\u6570\u636e\u91c7\u96c6\u573a\u666f\u4e2d\uff0c\u8bbe\u7f6e\u5408\u7406\u7684\u8bf7\u6c42\u9891\u7387\u4e0e\u6293\u53d6\u65f6\u6bb5\uff0c\u907f\u514d\u5bf9\u5e73\u53f0\u670d\u52a1\u5668\u9020\u6210\u538b\u529b\uff0c\u540c\u65f6\u5728\u6570\u636e\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u9690\u53bb\u7528\u6237\u4e2a\u4eba\u6807\u8bc6\u4fe1\u606f\uff0c\u4fdd\u62a4\u7528\u6237\u9690\u79c1\u3002\u200b<\/p>\n\n\n\n<p>\u4e09\u662f\u660e\u786e\u6570\u636e\u4f7f\u7528\u8fb9\u754c\uff0c\u91c7\u96c6\u7684\u5c0f\u7ea2\u4e66\u6570\u636e\u4ec5\u7528\u4e8e\u8206\u60c5\u76d1\u6d4b\u3001\u5e02\u573a\u5206\u6790\u7b49\u5408\u6cd5\u5546\u4e1a\u7528\u9014\uff0c\u4e25\u7981\u7528\u4e8e\u6076\u610f\u8425\u9500\u3001\u9020\u8c23\u4f20\u8c23\u3001\u7ade\u54c1\u653b\u51fb\u7b49\u8fdd\u89c4\u884c\u4e3a\uff0c\u90e8\u5206\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u8fd8\u901a\u8fc7\u6570\u636e\u8131\u654f\u3001\u64cd\u4f5c\u65e5\u5fd7\u7559\u75d5\u7b49\u6280\u672f\u624b\u6bb5\uff0c\u786e\u4fdd\u6570\u636e\u5168\u751f\u547d\u5468\u671f\u7684\u5408\u89c4\u53ef\u8ffd\u6eaf\u3002\u200b<\/p>\n\n\n\n<p>\u4e1a\u5185\u6280\u672f\u4e13\u5bb6\u5f3a\u8c03\uff0cPython \u722c\u866b\u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e \u201c\u5408\u89c4\u524d\u63d0\u4e0b\u7684\u9ad8\u6548\u6570\u636e\u63d0\u53d6\u201d\uff0c\u5f53\u524d\u4e3b\u6d41\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u5df2\u5f62\u6210 \u201cAPI \u63a5\u53e3\u4f18\u5148 + \u722c\u866b\u8865\u5145\u201d \u7684\u6df7\u5408\u91c7\u96c6\u6a21\u5f0f\uff0c\u65e2\u4fdd\u969c\u4e86\u6570\u636e\u83b7\u53d6\u7684\u5408\u6cd5\u6027\uff0c\u53c8\u6ee1\u8db3\u4e86\u8206\u60c5\u76d1\u6d4b\u5bf9\u6570\u636e\u65f6\u6548\u6027\u3001\u5168\u9762\u6027\u7684\u9700\u6c42\u3002\u200b<\/p>\n\n\n\n<p>\u5e94\u7528\u4ef7\u503c\uff1a\u6570\u636e\u8d4b\u80fd\u591a\u573a\u666f\u8206\u60c5\u6d1e\u5bdf\u200b<\/p>\n\n\n\n<p>\u57fa\u4e8e Python \u722c\u866b\u91c7\u96c6\u7684\u5c0f\u7ea2\u4e66\u6570\u636e\uff0c\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u5df2\u5728\u54c1\u724c\u76d1\u6d4b\u3001\u6d88\u8d39\u8d8b\u52bf\u5206\u6790\u3001\u5371\u673a\u9884\u8b66\u7b49\u573a\u666f\u5b9e\u73b0\u6df1\u5ea6\u5e94\u7528\uff0c\u91ca\u653e\u663e\u8457\u5546\u4e1a\u4ef7\u503c\u3002\u200b<\/p>\n\n\n\n<p>\u5728\u54c1\u724c\u58f0\u8a89\u7ba1\u7406\u9886\u57df\uff0c\u901a\u8fc7 Python \u722c\u866b\u6301\u7eed\u8ffd\u8e2a\u54c1\u724c\u76f8\u5173\u7b14\u8bb0\u5185\u5bb9\u4e0e\u8bc4\u8bba\u60c5\u7eea\uff0c\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u53ef\u5feb\u901f\u6355\u6349\u7528\u6237\u5bf9\u4ea7\u54c1\u8d28\u91cf\u3001\u670d\u52a1\u4f53\u9a8c\u7684\u6b63\u9762\u53cd\u9988\u4e0e\u8d1f\u9762\u6295\u8bc9\uff0c\u7cbe\u51c6\u5b9a\u4f4d\u54c1\u724c\u58f0\u8a89\u98ce\u9669\u70b9\u3002\u67d0\u6bcd\u5a74\u54c1\u724c\u901a\u8fc7\u8be5\u6a21\u5f0f\uff0c\u53ca\u65f6\u53d1\u73b0\u7528\u6237\u96c6\u4e2d\u53cd\u6620\u7684 \u201c\u4ea7\u54c1\u5305\u88c5\u6613\u7834\u635f\u201d \u95ee\u9898\uff0c\u5feb\u901f\u4f18\u5316\u5305\u88c5\u8bbe\u8ba1\u5e76\u53d1\u5e03\u6539\u8fdb\u516c\u544a\uff0c\u5c06\u8d1f\u9762\u8206\u60c5\u8f6c\u5316\u7387\u4ece 18% \u964d\u81f3 3%\uff0c\u540c\u65f6\u57fa\u4e8e\u7528\u6237\u771f\u5b9e\u4f7f\u7528\u573a\u666f\u7684\u53cd\u9988\uff0c\u8fed\u4ee3\u51fa\u66f4\u8d34\u5408\u9700\u6c42\u7684\u4ea7\u54c1\u7248\u672c\u3002\u200b<\/p>\n\n\n\n<p>\u5728\u6d88\u8d39\u8d8b\u52bf\u6d1e\u5bdf\u65b9\u9762\uff0cPython \u722c\u866b\u91c7\u96c6\u7684\u5c0f\u7ea2\u4e66\u8bdd\u9898\u70ed\u5ea6\u3001\u5173\u952e\u8bcd\u5173\u8054\u3001\u7528\u6237\u504f\u597d\u7b49\u6570\u636e\uff0c\u6210\u4e3a\u5e02\u573a\u8c03\u7814\u7684\u91cd\u8981\u4f9d\u636e\u3002\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u901a\u8fc7\u5bf9 \u201c\u9732\u8425\u88c5\u5907\u201d\u201c\u6781\u7b80\u62a4\u80a4\u201d \u7b49\u70ed\u95e8\u8bdd\u9898\u7684\u6570\u636e\u5206\u6790\uff0c\u4e3a\u4f01\u4e1a\u63d0\u4f9b\u6d88\u8d39\u9700\u6c42\u53d8\u5316\u8d8b\u52bf\u3001\u6f5c\u5728\u5e02\u573a\u673a\u4f1a\u7b49\u6d1e\u5bdf\uff0c\u67d0\u6237\u5916\u54c1\u724c\u57fa\u4e8e\u76f8\u5173\u6570\u636e\u5feb\u901f\u5e03\u5c40\u8f7b\u91cf\u5316\u9732\u8425\u4ea7\u54c1\uff0c\u4e0a\u5e02 3 \u4e2a\u6708\u5185\u5b9e\u73b0\u9500\u552e\u989d\u7834\u4ebf\u5143\u3002\u200b<\/p>\n\n\n\n<p>\u5728\u5371\u673a\u98ce\u9669\u9884\u8b66\u573a\u666f\uff0cPython \u722c\u866b\u7684\u5b9e\u65f6\u91c7\u96c6\u80fd\u529b\u8ba9\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u53ef\u5feb\u901f\u6355\u6349\u5c0f\u7ea2\u4e66\u5e73\u53f0\u7684\u6f5c\u5728\u5371\u673a\u82d7\u5934\u3002\u4f8b\u5982\uff0c\u67d0\u9910\u996e\u54c1\u724c\u56e0 \u201c\u98df\u54c1\u5b89\u5168\u95ee\u9898\u201d \u5f15\u53d1\u96f6\u661f\u6295\u8bc9\u7b14\u8bb0\uff0cPython \u722c\u866b\u7b2c\u4e00\u65f6\u95f4\u6293\u53d6\u76f8\u5173\u5185\u5bb9\u5e76\u89e6\u53d1\u9884\u8b66\uff0c\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u901a\u8fc7\u5206\u6790\u4f20\u64ad\u8def\u5f84\u3001\u7528\u6237\u60c5\u7eea\u6269\u6563\u901f\u5ea6\uff0c\u4e3a\u54c1\u724c\u63d0\u4f9b \u201c\u5feb\u901f\u56de\u5e94 + \u7ebf\u4e0b\u6838\u67e5 + \u516c\u5f00\u901a\u62a5\u201d \u7684\u5904\u7f6e\u5efa\u8bae\uff0c\u6210\u529f\u5728\u8d1f\u9762\u8206\u60c5\u53d1\u9175\u524d\u5b8c\u6210\u5e72\u9884\uff0c\u907f\u514d\u4e86\u5927\u89c4\u6a21\u58f0\u8a89\u635f\u5931\u3002\u200b<\/p>\n\n\n\n<p>\u6280\u672f\u8d8b\u52bf\uff1aAI \u878d\u5408\u4e0e\u5408\u89c4\u5347\u7ea7\u53cc\u5411\u53d1\u529b\u200b<\/p>\n\n\n\n<p>\u5f53\u524d\uff0cPython \u722c\u866b\u5728\u5c0f\u7ea2\u4e66\u8206\u60c5\u76d1\u6d4b\u4e2d\u7684\u5e94\u7528\u6b63\u5448\u73b0\u4e24\u5927\u5347\u7ea7\u8d8b\u52bf\u3002\u4e00\u65b9\u9762\uff0c\u4e0e AI \u5927\u6a21\u578b\u7684\u6df1\u5ea6\u878d\u5408\u6210\u4e3a\u6280\u672f\u6838\u5fc3\u65b9\u5411\uff0c\u901a\u8fc7 Python \u5c06\u722c\u866b\u91c7\u96c6\u7684\u5c0f\u7ea2\u4e66\u6570\u636e\u6295\u5582\u7ed9\u5927\u6a21\u578b\uff0c\u5b9e\u73b0\u60c5\u611f\u7ec6\u5206\u7c7b\uff08\u5982\u533a\u5206 \u201c\u5931\u671b\u201d\u201c\u6124\u6012\u201d\u201c\u5410\u69fd\u201d \u7b49\u7ec6\u5206\u60c5\u7eea\uff09\u3001\u8bdd\u9898\u81ea\u52a8\u805a\u7c7b\u3001\u4f20\u64ad\u8d8b\u52bf\u9884\u5224\u7b49\u9ad8\u7ea7\u529f\u80fd\uff0c\u67d0\u8206\u60c5\u76d1\u6d4b\u5e73\u53f0\u5df2\u5b9e\u73b0\u57fa\u4e8e Python \u722c\u866b\u6570\u636e\u7684 \u201c48 \u5c0f\u65f6\u8206\u60c5\u53d1\u5c55\u8def\u5f84\u9884\u6d4b\u201d\uff0c\u51c6\u786e\u7387\u8fbe 83%\u3002\u200b<\/p>\n\n\n\n<p>\u53e6\u4e00\u65b9\u9762\uff0c\u5408\u89c4\u6280\u672f\u6301\u7eed\u8fed\u4ee3\uff0cPython \u722c\u866b\u6b63\u9010\u6b65\u5f15\u5165 \u201c\u667a\u80fd\u53cd\u722c\u9002\u914d\u201d\u201c\u6570\u636e\u6743\u9650\u6821\u9a8c\u201d\u201c\u9690\u79c1\u4fe1\u606f\u81ea\u52a8\u8bc6\u522b\u201d \u7b49\u529f\u80fd\uff0c\u901a\u8fc7\u4e0e\u5c0f\u7ea2\u4e66\u5e73\u53f0\u6280\u672f\u89c4\u8303\u7684\u52a8\u6001\u9002\u914d\uff0c\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u5408\u89c4\u6027\u4e0e\u7a33\u5b9a\u6027\u3002\u540c\u65f6\uff0c\u9488\u5bf9\u5c0f\u7ea2\u4e66\u89c6\u9891\u7b14\u8bb0\u5360\u6bd4\u63d0\u5347\u7684\u8d8b\u52bf\uff0cPython \u722c\u866b\u5df2\u8054\u52a8\u89c6\u9891\u8f6c\u6587\u5b57\u3001\u56fe\u50cf\u8bc6\u522b\u7b49\u6280\u672f\uff0c\u5b9e\u73b0\u591a\u6a21\u6001\u6570\u636e\u7684\u5168\u9762\u91c7\u96c6\u4e0e\u89e3\u6790\uff0c\u8fdb\u4e00\u6b65\u62d3\u5c55\u8206\u60c5\u76d1\u6d4b\u7684\u8986\u76d6\u8fb9\u754c\u3002\u200b<\/p>\n\n\n\n<p>\u4e1a\u5185\u4eba\u58eb\u8868\u793a\uff0cPython \u8bed\u8a00\u7684\u5f00\u6e90\u7279\u6027\u4e0e\u5f3a\u9002\u914d\u6027\uff0c\u4f7f\u5176\u6210\u4e3a\u5c0f\u7ea2\u4e66\u8206\u60c5\u76d1\u6d4b\u7684 \u201c\u6280\u672f\u57fa\u77f3\u201d\u3002\u672a\u6765\uff0c\u968f\u7740\u6570\u636e\u5408\u89c4\u8981\u6c42\u7684\u8fdb\u4e00\u6b65\u63d0\u5347\u4e0e AI \u6280\u672f\u7684\u6301\u7eed\u8fed\u4ee3\uff0cPython \u722c\u866b\u5c06\u5728 \u201c\u5408\u89c4\u91c7\u96c6 &#8211; \u667a\u80fd\u5206\u6790 &#8211; \u4ef7\u503c\u8f6c\u5316\u201d \u7684\u5168\u94fe\u8def\u4e2d\u53d1\u6325\u66f4\u6838\u5fc3\u7684\u4f5c\u7528\uff0c\u4e3a\u8206\u60c5\u76d1\u6d4b\u884c\u4e1a\u63d0\u4f9b\u66f4\u7cbe\u51c6\u3001\u9ad8\u6548\u7684\u5c0f\u7ea2\u4e66\u6570\u636e\u652f\u6491\uff0c\u52a9\u529b\u54c1\u724c\u4e0e\u673a\u6784\u5b9e\u73b0\u66f4\u6df1\u5ea6\u7684\u5e02\u573a\u6d1e\u5bdf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u4e3a\u805a\u96c6\u8d85 2.6 \u4ebf\u6708\u6d3b\u7528\u6237\u7684\u751f\u6d3b\u65b9\u5f0f\u793e\u533a\uff0c\u5c0f\u7ea2\u4e66\u5df2\u6210\u4e3a\u8206\u60c5\u76d1\u6d4b\u9886\u57df\u7684\u6838\u5fc3\u6570\u636e\u6765\u6e90 \u2014\u2014 \u7528\u6237\u81ea\u53d1\u5206\u4eab\u7684\u4ea7\u54c1\u8bc4\u4ef7\u3001\u6d88\u8d39\u4f53\u9a8c\u3001\u70ed\u70b9\u8ba8\u8bba\u7b49\u5185\u5bb9\uff0c\u8574\u542b\u7740\u771f\u5b9e\u7684\u5e02\u573a\u60c5\u7eea\u4e0e\u6d88\u8d39\u8d8b\u52bf\u3002Python \u8bed\u8a00\u51ed\u501f\u5176\u9ad8\u6548\u3001\u7075\u6d3b\u3001\u5f00\u6e90\u7684\u6280\u672f\u4f18\u52bf\uff0c\u6210\u4e3a\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u91c7\u96c6\u5c0f\u7ea2\u4e66\u6570\u636e\u7684\u4e3b\u6d41\u5de5\u5177\uff0c\u901a\u8fc7\u6807\u51c6\u5316\u722c\u866b\u6846\u67b6\u5b9e\u73b0\u5408\u89c4\u6570\u636e\u83b7\u53d6\uff0c\u4e3a\u54c1\u724c\u58f0\u8a89\u7ba1\u7406\u3001\u5e02\u573a\u9700\u6c42\u6316\u6398\u3001\u5371\u673a\u98ce\u9669\u9884\u8b66\u63d0\u4f9b\u7cbe\u51c6\u652f\u6491\uff0c\u63a8\u52a8\u8206\u60c5\u76d1\u6d4b\u4ece \u201c\u5e7f\u57df\u8986\u76d6\u201d \u5411 \u201c\u6df1\u5ea6\u6d1e\u5bdf\u201d \u5347\u7ea7\u3002\u200b \u6280\u672f\u903b\u8f91\uff1aPython \u722c\u866b\u6784\u5efa\u5c0f\u7ea2\u4e66\u6570\u636e\u91c7\u96c6\u95ed\u73af\u200b \u5c0f\u7ea2\u4e66\u6570\u636e\u5177\u6709 \u201c\u5185\u5bb9\u788e\u7247\u5316\u3001\u5f62\u5f0f\u591a\u6a21\u6001\uff08\u6587\u672c + \u56fe\u7247 + \u89c6\u9891\uff09\u3001\u4e92\u52a8\u6027\u5f3a\u201d \u7684\u7279\u5f81\uff0c\u4f20\u7edf\u91c7\u96c6\u65b9\u5f0f\u96be\u4ee5\u9ad8\u6548\u63d0\u53d6\u6709\u6548\u4fe1\u606f\u3002Python \u8bed\u8a00\u901a\u8fc7\u591a\u5e93\u534f\u540c\u4e0e\u6a21\u5757\u5316\u5f00\u53d1\uff0c\u6784\u5efa\u8d77 \u201c\u5b9a\u5411\u6293\u53d6 &#8211; \u6570\u636e\u6e05\u6d17 &#8211; \u7ed3\u6784\u5316\u8f93\u51fa\u201d \u7684\u5b8c\u6574\u91c7\u96c6\u94fe\u8def\uff0c\u6210\u4e3a\u8206\u60c5\u76d1\u6d4b\u8f6f\u4ef6\u7684\u6838\u5fc3\u6280\u672f\u5e95\u5ea7\u3002\u200b \u5728\u6570\u636e\u6293\u53d6\u73af\u8282\uff0cPython \u4f9d\u6258Scrapy\u201crequests\u201d \u7b49\u722c\u866b\u6846\u67b6\uff0c\u53ef\u5b9e\u73b0\u5bf9\u5c0f\u7ea2\u4e66\u5173\u952e\u8bcd\u641c\u7d22\u7ed3\u679c\u3001\u8bdd\u9898\u9875\u5185\u5bb9\u3001\u8fbe\u4eba\u8d26\u53f7\u52a8\u6001\u3001\u8bc4\u8bba\u533a\u4e92\u52a8\u7b49\u591a\u7ef4\u5ea6\u6570\u636e\u7684\u5b9a\u5411\u91c7\u96c6\u3002\u901a\u8fc7\u6a21\u62df\u6d4f\u89c8\u5668\u884c\u4e3a\u3001\u8bbe\u7f6e\u5408\u7406\u8bf7\u6c42\u9891\u7387\u3001\u52a8\u6001\u8c03\u6574 IP \u4ee3\u7406\u7b49\u6280\u672f\u624b\u6bb5\uff0c\u89c4\u907f\u5e73\u53f0\u53cd\u722c\u673a\u5236\uff0c\u786e\u4fdd\u6570\u636e\u91c7\u96c6\u7684\u7a33\u5b9a\u6027\u4e0e\u6301\u7eed\u6027\u3002\u4f8b\u5982\uff0c\u9488\u5bf9 \u201c\u67d0\u7f8e\u5986\u54c1\u724c\u4ea7\u54c1\u8bc4\u4ef7\u201d \u7684\u8206\u60c5\u76d1\u6d4b\u9700\u6c42\uff0c\u722c\u866b\u53ef\u7cbe\u51c6\u5b9a\u4f4d\u5305\u542b\u8be5\u54c1\u724c\u5173\u952e\u8bcd\u7684\u7b14\u8bb0\u5185\u5bb9\uff0c\u540c\u6b65\u6293\u53d6\u53d1\u5e03\u65f6\u95f4\u3001\u4f5c\u8005\u753b\u50cf\u3001\u70b9\u8d5e \/ \u6536\u85cf \/ \u8bc4\u8bba\u6570\u636e\u3001\u5730\u7406\u5b9a\u4f4d\u7b49\u5173\u8054\u4fe1\u606f\uff0c\u5b9e\u73b0 \u201c\u5185\u5bb9 + \u4e92\u52a8 + \u7528\u6237\u201d \u7684\u5168\u57df\u6570\u636e\u8986\u76d6\u3002\u200b \u6570\u636e\u6e05\u6d17\u4e0e\u89e3\u6790\u662f\u6280\u672f\u6838\u5fc3\u73af\u8282\u3002\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u5e38\u5305\u542b\u8868\u60c5\u7b26\u53f7\u3001\u7f51\u7edc\u4fda\u8bed\u3001\u8bdd\u9898\u6807\u7b7e\uff08Hashtag\uff09\u7b49\u975e\u7ed3\u6784\u5316\u5185\u5bb9\uff0cPython \u901a\u8fc7BeautifulSoup\u201clxml\u201d \u7b49\u89e3\u6790\u5e93\u63d0\u53d6\u6587\u672c\u3001\u56fe\u7247\u94fe\u63a5\u3001\u89c6\u9891\u5e27\u7b49\u6838\u5fc3\u6570\u636e\uff0c\u518d\u501f\u52a9jieba\u5206\u8bcd\u3001pandas\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5254\u9664\u65e0\u6548\u4fe1\u606f\u3001\u7edf\u4e00\u6570\u636e\u683c\u5f0f\uff0c\u5b8c\u6210 \u201c\u539f\u59cb\u6570\u636e &#8211; \u7ed3\u6784\u5316\u6570\u636e\u201d \u7684\u8f6c\u5316\u3002\u9488\u5bf9\u591a\u6a21\u6001\u5185\u5bb9\uff0cPython \u53ef\u8054\u52a8PIL\u56fe\u50cf\u5904\u7406\u5e93\u3001pytesseractOCR \u5de5\u5177\uff0c\u63d0\u53d6\u56fe\u7247\u4e2d\u7684\u6587\u5b57\u4fe1\u606f\uff08\u5982\u4ea7\u54c1\u5305\u88c5\u8bf4\u660e\u3001\u624b\u5199\u4f53\u9a8c\u7b14\u8bb0\uff09\uff0c\u5b9e\u73b0\u6587\u672c\u6570\u636e\u7684\u5168\u9762\u6355\u6349\uff0c\u4e3a\u540e\u7eed\u8206\u60c5\u5206\u6790\u63d0\u4f9b\u5b8c\u6574\u6570\u636e\u57fa\u7840\u3002\u200b \u7ed3\u6784\u5316\u8f93\u51fa\u73af\u8282\uff0cPython \u722c\u866b\u53ef\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u4ee5 CSV\u3001JSON&hellip; <br \/> <a class=\"read-more\" href=\"http:\/\/www.jiayus.com\/?p=3976\">Read more<\/a><\/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":[],"class_list":["post-3976","post","type-post","status-publish","format-standard","hentry","category-gsxw"],"_links":{"self":[{"href":"http:\/\/www.jiayus.com\/index.php?rest_route=\/wp\/v2\/posts\/3976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jiayus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jiayus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jiayus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jiayus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3976"}],"version-history":[{"count":1,"href":"http:\/\/www.jiayus.com\/index.php?rest_route=\/wp\/v2\/posts\/3976\/revisions"}],"predecessor-version":[{"id":3977,"href":"http:\/\/www.jiayus.com\/index.php?rest_route=\/wp\/v2\/posts\/3976\/revisions\/3977"}],"wp:attachment":[{"href":"http:\/\/www.jiayus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jiayus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3976"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jiayus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}