{"id":30551,"date":"2023-05-18T22:29:52","date_gmt":"2023-05-18T14:29:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=30551"},"modified":"2023-07-31T01:50:04","modified_gmt":"2023-07-30T17:50:04","slug":"python%e7%89%b9%e7%82%b9%e5%8f%8a%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/30551.html","title":{"rendered":"Python\u7279\u70b9\u53ca\u5e94\u7528"},"content":{"rendered":"<blockquote class=\"wp-block-quote\">\n<p>Python\u4ee5\u5176\u8bed\u6cd5\u7b80\u6d01\u6613\u8bfb\u3001\u8de8\u5e73\u53f0\u6027\u3001\u5f3a\u5927\u7684\u6807\u51c6\u5e93\u3001\u53ef\u6269\u5c55\u6027\u3001\u96c6\u6210\u6027\u7b49\u7279\u70b9\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8eWeb\u5f00\u53d1\u3001\u6570\u636e\u79d1\u5b66\u3001\u81ea\u52a8\u5316\u811a\u672c\u3001\u6e38\u620f\u5f00\u53d1\u3001\u7f51\u7edc\u722c\u866b\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406\u548c\u4eba\u5de5\u667a\u80fd\u7b49\u9886\u57df\u3002\u5176\u5e7f\u6cdb\u7684\u5e94\u7528\u548c\u4e30\u5bcc\u7684\u751f\u6001\u7cfb\u7edf\u4f7f\u5f97Python\u6210\u4e3a\u73b0\u4ee3\u7f16\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" alt=\"Python\u7279\u70b9\u53ca\u5e94\u7528\" class=\"wp-image-30552\" decoding=\"async\" height=\"421\" sizes=\"(max-width: 680px) 100vw, 680px\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/05\/9.jpeg?x-oss-process=image\/auto-orient,1\/format,webp\" srcset=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/05\/9.jpeg?x-oss-process=image\/auto-orient,1\/format,webp 680w, https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/05\/9-300x186.jpeg 300w\" width=\"680\"\/><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">\u4e00\u3001Python\u7684\u7279\u70b9<\/h2>\n<p>Python\u662f\u4e00\u79cd\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\uff0c\u7531Guido van Rossum\u4e8e\u4e0a\u4e16\u7eaa90\u5e74\u4ee3\u521d\u5f00\u53d1\uff0c\u5b83\u5177\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a<\/p>\n<p><strong>1\u3001\u8bed\u6cd5\u7b80\u6d01\u6613\u8bfb<\/strong><\/p>\n<p>Python\u4f7f\u7528\u7f29\u8fdb\u6765\u8868\u793a\u4ee3\u7801\u5757\uff0c\u800c\u4e0d\u662f\u5927\u62ec\u53f7\uff0c\u4f7f\u5f97\u4ee3\u7801\u7ed3\u6784\u66f4\u52a0\u6e05\u6670\u3002\u6b64\u5916\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5185\u7f6e\u51fd\u6570\u548c\u6807\u51c6\u5e93\uff0c\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u4f7f\u7528\u7b80\u5355\u7684\u8bed\u53e5\u6765\u5b8c\u6210\u590d\u6742\u7684\u4efb\u52a1\u3002\u8fd9\u79cd\u7b80\u6d01\u6613\u8bfb\u7684\u8bed\u6cd5\u4f7f\u5f97Python\u6210\u4e3a\u521d\u5b66\u8005\u5165\u95e8\u7684\u7406\u60f3\u8bed\u8a00\uff0c\u540c\u65f6\u4e5f\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<p><strong>2\u3001\u8de8\u5e73\u53f0\u6027<\/strong><\/p>\n<p>Python\u662f\u4e00\u79cd\u8de8\u5e73\u53f0\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u65e0\u8bba\u662fWindows\u3001macOS\u8fd8\u662fLinux\uff0c\u53ea\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\uff0c\u5c31\u53ef\u4ee5\u8fd0\u884c\u76f8\u540c\u7684Python\u4ee3\u7801\u3002\u8fd9\u79cd\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u5728\u4e0d\u540c\u73af\u5883\u4e0b\u5f00\u53d1\u548c\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\uff0c\u63d0\u9ad8\u4e86\u4ee3\u7801\u7684\u53ef\u79fb\u690d\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<p><strong>3\u3001\u5f3a\u5927\u7684\u6807\u51c6\u5e93<\/strong><\/p>\n<p>Python\u62e5\u6709\u4e30\u5bcc\u7684\u6807\u51c6\u5e93\uff0c\u63d0\u4f9b\u4e86\u5404\u79cd\u529f\u80fd\u6a21\u5757\uff0c\u5982\u6587\u4ef6\u64cd\u4f5c\u3001\u7f51\u7edc\u901a\u4fe1\u3001\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u3002\u8fd9\u4e9b\u6a21\u5757\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u5feb\u901f\u5f00\u53d1\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u9700\u8981\u4ece\u5934\u7f16\u5199\u5927\u91cf\u7684\u4ee3\u7801\u3002<\/p>\n<p><strong>4\u3001\u53ef\u6269\u5c55\u6027<\/strong><\/p>\n<p>Python\u8fd8\u652f\u6301\u5404\u79cd\u7b2c\u4e09\u65b9\u5e93\u548c\u6846\u67b6\uff0c\u5982NumPy\u3001Pandas\u3001Django\u548cFlask\u7b49\uff0c\u8fd9\u4e9b\u5e93\u548c\u6846\u67b6\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u5de5\u5177\uff0c\u6269\u5c55\u4e86Python\u7684\u80fd\u529b\u548c\u5e94\u7528\u8303\u56f4\u3002<\/p>\n<p><strong>5\u3001\u96c6\u6210\u6027<\/strong><\/p>\n<p>Python\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0e\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u8fdb\u884c\u96c6\u6210\uff0c\u4f8b\u5982C\/C++\u3001Java\u7b49\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528Python\u7f16\u5199\u9ad8\u7ea7\u7684\u903b\u8f91\u548c\u7b97\u6cd5\uff0c\u5e76\u5c06\u5176\u4e0e\u5176\u4ed6\u8bed\u8a00\u7684\u4ee3\u7801\u8fdb\u884c\u7ed3\u5408\uff0c\u4ee5\u63d0\u9ad8\u6027\u80fd\u6216\u5229\u7528\u73b0\u6709\u7684\u8d44\u6e90\u3002\u8fd9\u79cd\u96c6\u6210\u6027\u4f7f\u5f97Python\u6210\u4e3a\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e94\u5bf9\u5404\u79cd\u590d\u6742\u7684\u7f16\u7a0b\u4efb\u52a1\u548c\u9879\u76ee\u9700\u6c42\u3002<\/p>\n<p><strong>6\u3001\u5e9e\u5927\u7684\u5f00\u6e90\u793e\u533a\u652f\u6301<\/strong><\/p>\n<p>Python\u62e5\u6709\u4e00\u4e2a\u5e9e\u5927\u800c\u6d3b\u8dc3\u7684\u5f00\u6e90\u793e\u533a\uff0c\u5176\u4e2d\u5305\u62ec\u4e86\u4f17\u591a\u5f00\u53d1\u4eba\u5458\u548c\u8d21\u732e\u8005\u3002\u5f00\u6e90\u793e\u533a\u4e3aPython\u63d0\u4f9b\u4e86\u6301\u7eed\u7684\u66f4\u65b0\u548c\u6539\u8fdb\uff0c\u4e0d\u65ad\u4fee\u590d\u6f0f\u6d1e\u3001\u589e\u52a0\u65b0\u529f\u80fd\uff0c\u5e76\u5206\u4eab\u5404\u79cd\u6559\u7a0b\u548c\u8d44\u6e90\u3002\u8fd9\u4f7f\u5f97Python\u4e0d\u4ec5\u4ec5\u662f\u4e00\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u66f4\u662f\u4e00\u4e2a\u5145\u6ee1\u6d3b\u529b\u548c\u521b\u9020\u529b\u7684\u751f\u6001\u7cfb\u7edf\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4e8c\u3001Python\u7684\u5e94\u7528<\/h2>\n<p>\u6b63\u56e0\u4e3aPython\u5177\u5907\u4e86\u4e0a\u8ff0\u7279\u70b9\uff0c\u56e0\u6b64\u5b83\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u4e2a\u9886\u57df\uff0c\u5177\u4f53\u5305\u62ec\uff1a<\/p>\n<p><strong>1\u3001Web\u5f00\u53d1<\/strong><\/p>\n<p>Python\u662fWeb\u5f00\u53d1\u7684\u6d41\u884c\u8bed\u8a00\u4e4b\u4e00\u3002Django\u548cFlask\u662f\u5e38\u7528\u7684Python Web\u6846\u67b6\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u8bb8\u591a\u529f\u80fd\u548c\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u5feb\u5730\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u3002\u6b64\u5916\uff0cPython\u8fd8\u6709\u8bb8\u591aWeb\u5e93\u548c\u6846\u67b6\uff0c\u5982Pyramid\u3001Tornado\u548cBottle\u7b49\u3002<\/p>\n<p><strong>2\u3001\u6570\u636e\u79d1\u5b66<\/strong><\/p>\n<p>Python\u5728\u6570\u636e\u79d1\u5b66\u9886\u57df\u4e2d\u4e5f\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002Python\u7684\u6570\u636e\u79d1\u5b66\u5e93\u5305\u62ecNumPy\u3001Pandas\u3001SciPy\u548cScikit-learn\u7b49\uff0c\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5904\u7406\u548c\u5206\u6790\u6570\u636e\u3002\u6b64\u5916\uff0cPython\u8fd8\u6709\u53ef\u89c6\u5316\u5e93\uff0c\u5982Matplotlib\u548cSeaborn\u7b49\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5c06\u6570\u636e\u53ef\u89c6\u5316\u3002<\/p>\n<p><strong>3\u3001\u81ea\u52a8\u5316\u811a\u672c<\/strong><\/p>\n<p>Python\u7684\u7b80\u6d01\u548c\u6613\u8bfb\u6027\u4f7f\u5176\u6210\u4e3a\u81ea\u52a8\u5316\u811a\u672c\u7f16\u5199\u7684\u7406\u60f3\u9009\u62e9\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528Python\u7f16\u5199\u811a\u672c\u6765\u81ea\u52a8\u6267\u884c\u91cd\u590d\u6027\u4efb\u52a1\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<p><strong>4\u3001\u6e38\u620f\u5f00\u53d1<\/strong><\/p>\n<p>Python\u7684\u4e00\u4e9b\u5e93\u548c\u6846\u67b6\uff0c\u5982Pygame\u548cPyglet\uff0c\u63d0\u4f9b\u4e86\u6e38\u620f\u5f00\u53d1\u6240\u9700\u7684\u5de5\u5177\u548c\u529f\u80fd\u3002Python\u53ef\u4ee5\u7528\u4e8e\u7f16\u5199\u6e38\u620f\u903b\u8f91\u3001\u56fe\u5f62\u6e32\u67d3\u548c\u7528\u6237\u4ea4\u4e92\u7b49\u65b9\u9762\u7684\u4ee3\u7801\uff0c\u4f7f\u5f97\u5f00\u53d1\u6e38\u620f\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u548c\u5feb\u6377\u3002<\/p>\n<p><strong>5\u3001\u7f51\u7edc\u722c\u866b<\/strong><\/p>\n<p>Python\u5728\u7f51\u7edc\u722c\u866b\u9886\u57df\u5177\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5176\u7b80\u6d01\u7684\u8bed\u6cd5\u548c\u4e30\u5bcc\u7684\u5e93\u652f\u6301\u4f7f\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u8f7b\u677e\u5730\u83b7\u53d6\u548c\u5904\u7406\u4e92\u8054\u7f51\u4e0a\u7684\u6570\u636e\uff0c\u5e76\u8fdb\u884c\u6570\u636e\u6316\u6398\u548c\u5206\u6790\u3002<\/p>\n<p><strong>6\u3001\u81ea\u7136\u8bed\u8a00\u5904\u7406<\/strong><\/p>\n<p>Python\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002\u901a\u8fc7\u4f7f\u7528\u5e93\u548c\u5de5\u5177\u5982NLTK\u548cSpaCy\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5904\u7406\u6587\u672c\u6570\u636e\u3001\u8fdb\u884c\u6587\u672c\u5206\u6790\u548c\u8bed\u8a00\u6a21\u578b\u6784\u5efa\u7b49\u4efb\u52a1\u3002<\/p>\n<p><strong>7\u3001\u4eba\u5de5\u667a\u80fd<\/strong><\/p>\n<p>Python\u662f\u4eba\u5de5\u667a\u80fd\u9886\u57df\u7684\u4f18\u9009\u8bed\u8a00\u4e4b\u4e00\u3002\u5176\u5f3a\u5927\u7684\u5e93\u548c\u6846\u67b6\uff0c\u5982TensorFlow\u548cPyTorch\uff0c\u652f\u6301\u6df1\u5ea6\u5b66\u4e60\u548c\u795e\u7ecf\u7f51\u7edc\u7684\u6784\u5efa\u548c\u8bad\u7ec3\uff0c\u4ece\u800c\u5b9e\u73b0\u56fe\u50cf\u8bc6\u522b\u3001\u8bed\u97f3\u5904\u7406\u548c\u81ea\u7136\u8bed\u8a00\u751f\u6210\u7b49\u4eba\u5de5\u667a\u80fd\u4efb\u52a1\u3002<\/p>\n<p>\u603b\u4f53\u800c\u8a00\uff0c\u65e0\u8bba\u662f\u521d\u5b66\u8005\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u4eba\u5458\uff0c\u90fd\u53ef\u4ee5\u4ecePython\u7684\u7b80\u5355\u6027\u548c\u5f3a\u5927\u6027\u4e2d\u53d7\u76ca\uff0c\u5e76\u5feb\u901f\u6784\u5efa\u51fa\u9ad8\u8d28\u91cf\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u968f\u7740Python\u751f\u6001\u7cfb\u7edf\u7684\u4e0d\u65ad\u53d1\u5c55\u548c\u58ee\u5927\uff0c\u6211\u4eec\u53ef\u4ee5\u9884\u89c1Python\u5728\u672a\u6765\u7684\u5e94\u7528\u573a\u666f\u4e2d\u5c06\u7ee7\u7eed\u53d1\u6325\u91cd\u8981\u4f5c\u7528\uff0c\u5e76\u4e3a\u5f00\u53d1\u4eba\u5458\u5e26\u6765\u66f4\u591a\u7684\u521b\u9020\u548c\u521b\u65b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4ee5\u5176\u8bed\u6cd5\u7b80\u6d01\u6613\u8bfb\u3001\u8de8\u5e73\u53f0\u6027\u3001\u5f3a\u5927\u7684\u6807\u51c6\u5e93\u3001\u53ef\u6269\u5c55\u6027\u3001\u96c6\u6210\u6027\u7b49\u7279\u70b9\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8eWeb\u5f00\u53d1\u3001\u6570\u636e\u79d1\u5b66 [&hellip;]","protected":false},"author":1,"featured_media":30552,"comment_status":"closed","ping_status":"open","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\/30551"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=30551"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/30551\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/30552"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=30551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=30551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=30551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}