{"id":948572,"date":"2024-12-27T00:04:48","date_gmt":"2024-12-26T16:04:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/948572.html"},"modified":"2024-12-27T00:04:51","modified_gmt":"2024-12-26T16:04:51","slug":"python%e5%a6%82%e4%bd%95%e5%8e%bb%e5%b9%bf%e5%91%8a","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/948572.html","title":{"rendered":"Python\u5982\u4f55\u53bb\u5e7f\u544a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083858\/c8eb5689-034a-4f60-aa1f-93184018cea5.webp\" alt=\"Python\u5982\u4f55\u53bb\u5e7f\u544a\" \/><\/p>\n<p><p> <strong>Python\u53bb\u5e7f\u544a\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fc7\u6ee4\u5e7f\u544a\u3001\u5229\u7528\u7f51\u9875\u89e3\u6790\u5e93\u5206\u6790\u548c\u63d0\u53d6\u975e\u5e7f\u544a\u5185\u5bb9\u3001\u4f7f\u7528<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u6a21\u578b\u8bc6\u522b\u548c\u53bb\u9664\u5e7f\u544a\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fc7\u6ee4\u5e7f\u544a\u662f\u6700\u7b80\u5355\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u9002\u5408\u5904\u7406\u7ed3\u6784\u7b80\u5355\u6216\u683c\u5f0f\u56fa\u5b9a\u7684\u5e7f\u544a\u5185\u5bb9\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5206\u6790\u5e7f\u544a\u5185\u5bb9\u7684\u7279\u70b9\uff0c\u7f16\u5199\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u4ece\u7f51\u9875\u6e90\u7801\u4e2d\u5339\u914d\u5e76\u53bb\u9664\u5e7f\u544a\u3002\u4ee5\u4e0b\u5c06\u4ece\u591a\u4e2a\u89d2\u5ea6\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u53bb\u5e7f\u544a\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u8fc7\u6ee4\u5e7f\u544a<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u5339\u914d\u5de5\u5177\uff0c\u80fd\u591f\u5feb\u901f\u8bc6\u522b\u548c\u63d0\u53d6\u7279\u5b9a\u6a21\u5f0f\u7684\u6587\u672c\u5185\u5bb9\u3002\u5bf9\u4e8e\u683c\u5f0f\u56fa\u5b9a\u6216\u7ed3\u6784\u7b80\u5355\u7684\u5e7f\u544a\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u53bb\u5e7f\u544a\u7684\u6709\u6548\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7406\u89e3\u5e7f\u544a\u7279\u5f81<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u5e7f\u544a\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u9996\u5148\u5206\u6790\u5e7f\u544a\u5185\u5bb9\u7684\u7279\u5f81\u3002\u901a\u5e38\uff0c\u5e7f\u544a\u4f1a\u5728HTML\u4e2d\u4ee5\u7279\u5b9a\u7684\u6807\u7b7e\u6216\u6807\u8bc6\u7b26\u51fa\u73b0\uff0c\u4f8b\u5982<code>&lt;div class=&quot;ad&quot;&gt;<\/code>\u3001<code>&lt;script&gt;<\/code>\u6807\u7b7e\u4e2d\u7684\u5e7f\u544a\u811a\u672c\u7b49\u3002\u901a\u8fc7\u5206\u6790\u8fd9\u4e9b\u7279\u5f81\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u76f8\u5e94\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5339\u914d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u6839\u636e\u5e7f\u544a\u7684\u7279\u5f81\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u76f8\u5e94\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5e7f\u544a\u603b\u662f\u51fa\u73b0\u5728\u7279\u5b9a\u7684<code>&lt;div&gt;<\/code>\u6807\u7b7e\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>html_content = &quot;&quot;&quot;...&quot;&quot;&quot;  # \u8fd9\u662f\u7f51\u9875\u7684HTML\u5185\u5bb9<\/p>\n<h2><strong>\u5339\u914d\u5e7f\u544a\u7684\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>ad_pattern = r&#39;&lt;div class=&quot;ad&quot;&gt;.*?&lt;\/div&gt;&#39;<\/p>\n<h2><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u9664\u5e7f\u544a<\/strong><\/h2>\n<p>clean_content = re.sub(ad_pattern, &#39;&#39;, html_content, flags=re.DOTALL)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u5e7f\u544a\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u8d2a\u5a6a\u5339\u914d<\/strong>\uff1a\u6b63\u5219\u8868\u8fbe\u5f0f\u9ed8\u8ba4\u4f7f\u7528\u8d2a\u5a6a\u5339\u914d\uff0c\u53ef\u80fd\u4f1a\u5339\u914d\u4e0d\u5fc5\u8981\u7684\u5185\u5bb9\u3002\u53ef\u4ee5\u4f7f\u7528<code>?<\/code>\u8fdb\u884c\u975e\u8d2a\u5a6a\u5339\u914d\u3002<\/li>\n<li><strong>HTML\u590d\u6742\u6027<\/strong>\uff1a\u590d\u6742\u7684HTML\u7ed3\u6784\u53ef\u80fd\u5bfc\u81f4\u6b63\u5219\u8868\u8fbe\u5f0f\u96be\u4ee5\u51c6\u786e\u5339\u914d\uff0c\u56e0\u6b64\u5efa\u8bae\u5728\u7b80\u5355\u7ed3\u6784\u4e2d\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u7f51\u9875\u89e3\u6790\u5e93\u5206\u6790<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u7ed3\u6784\u590d\u6742\u7684\u7f51\u9875\u6216\u65e0\u6cd5\u7b80\u5355\u5339\u914d\u7684\u5e7f\u544a\u5185\u5bb9\uff0c\u4f7f\u7528\u7f51\u9875\u89e3\u6790\u5e93\uff0c\u5982BeautifulSoup\u548clxml\uff0c\u662f\u66f4\u597d\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528BeautifulSoup<\/strong><\/p>\n<\/p>\n<p><p>BeautifulSoup\u662fPython\u4e2d\u4e00\u4e2a\u6d41\u884c\u7684HTML\/XML\u89e3\u6790\u5e93\uff0c\u80fd\u591f\u8f7b\u677e\u5730\u4ece\u7f51\u9875\u4e2d\u63d0\u53d6\u7279\u5b9a\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from bs4 import BeautifulSoup<\/p>\n<p>html_content = &quot;&quot;&quot;...&quot;&quot;&quot;  # \u8fd9\u662f\u7f51\u9875\u7684HTML\u5185\u5bb9<\/p>\n<p>soup = BeautifulSoup(html_content, &#39;html.parser&#39;)<\/p>\n<h2><strong>\u5220\u9664\u6240\u6709\u5e7f\u544a\u6807\u7b7e<\/strong><\/h2>\n<p>for ad in soup.find_all(class_=&#39;ad&#39;):<\/p>\n<p>    ad.decompose()<\/p>\n<p>clean_content = soup.prettify()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528lxml<\/strong><\/p>\n<\/p>\n<p><p>lxml\u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u89e3\u6790\u5e93\uff0c\u652f\u6301XPath\u67e5\u8be2\uff0c\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u63d0\u53d6\u7279\u5b9a\u6807\u7b7e\u6216\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from lxml import etree<\/p>\n<p>html_content = &quot;&quot;&quot;...&quot;&quot;&quot;  # \u8fd9\u662f\u7f51\u9875\u7684HTML\u5185\u5bb9<\/p>\n<p>parser = etree.HTMLParser()<\/p>\n<p>tree = etree.fromstring(html_content, parser)<\/p>\n<h2><strong>\u4f7f\u7528XPath\u5220\u9664\u5e7f\u544a<\/strong><\/h2>\n<p>ads = tree.xpath(&#39;\/\/div[@class=&quot;ad&quot;]&#39;)<\/p>\n<p>for ad in ads:<\/p>\n<p>    ad.getparent().remove(ad)<\/p>\n<p>clean_content = etree.tostring(tree, pretty_print=True).decode()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u673a\u5668\u5b66\u4e60\u6a21\u578b\u8bc6\u522b\u5e7f\u544a<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u52a8\u6001\u751f\u6210\u6216\u683c\u5f0f\u591a\u53d8\u7684\u5e7f\u544a\u5185\u5bb9\uff0c\u4f7f\u7528\u673a\u5668\u5b66\u4e60\u6a21\u578b\u8fdb\u884c\u8bc6\u522b\u662f\u4e00\u4e2a\u6709\u6548\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u8bad\u7ec3\u6a21\u578b\u8bc6\u522b\u5e7f\u544a\u7279\u5f81\uff0c\u53ef\u4ee5\u81ea\u52a8\u5316\u53bb\u9664\u7f51\u9875\u4e2d\u7684\u5e7f\u544a\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6536\u96c6\u8bad\u7ec3\u6570\u636e<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u6536\u96c6\u5927\u91cf\u7684\u7f51\u9875\u6570\u636e\uff0c\u5e76\u624b\u52a8\u6807\u8bb0\u54ea\u4e9b\u662f\u5e7f\u544a\u5185\u5bb9\uff0c\u54ea\u4e9b\u662f\u6b63\u5e38\u5185\u5bb9\u3002\u8fd9\u4e9b\u6570\u636e\u5c06\u7528\u4e8e\u8bad\u7ec3\u673a\u5668\u5b66\u4e60\u6a21\u578b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u6a21\u578b<\/strong><\/p>\n<\/p>\n<p><p>\u6839\u636e\u5e7f\u544a\u7684\u7279\u5f81\u548c\u590d\u6742\u6027\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u6587\u672c\u5206\u7c7b\u6a21\u578b\uff08\u5982SVM\u3001N<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ve Bayes\uff09\u6216\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\uff08\u5982CNN\u3001RNN\uff09\u8fdb\u884c\u5e7f\u544a\u8bc6\u522b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bad\u7ec3\u548c\u5e94\u7528\u6a21\u578b<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6807\u8bb0\u7684\u6570\u636e\u96c6\u8bad\u7ec3\u6a21\u578b\uff0c\u5e76\u5c06\u6a21\u578b\u5e94\u7528\u4e8e\u65b0\u7684\u7f51\u9875\u6570\u636e\u4e2d\uff0c\u81ea\u52a8\u8bc6\u522b\u5e76\u53bb\u9664\u5e7f\u544a\u5185\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u53bb\u5e7f\u544a<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5355\u4e00\u65b9\u6cd5\u53ef\u80fd\u4e0d\u8db3\u4ee5\u5904\u7406\u6240\u6709\u7c7b\u578b\u7684\u5e7f\u544a\uff0c\u56e0\u6b64\u7ed3\u5408\u591a\u79cd\u53bb\u5e7f\u544a\u65b9\u6cd5\u662f\u4e00\u4e2a\u6709\u6548\u7684\u7b56\u7565\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u4e0e\u89e3\u6790\u5e93\u7ed3\u5408<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u5148\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u9664\u7b80\u5355\u7684\u5e7f\u544a\u5185\u5bb9\uff0c\u7136\u540e\u4f7f\u7528BeautifulSoup\u6216lxml\u8fdb\u4e00\u6b65\u89e3\u6790\u548c\u53bb\u9664\u590d\u6742\u7684\u5e7f\u544a\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u673a\u5668\u5b66\u4e60\u4e0e\u89e3\u6790\u5e93\u7ed3\u5408<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u673a\u5668\u5b66\u4e60\u6a21\u578b\u8bc6\u522b\u5e7f\u544a\u540e\uff0c\u7ed3\u5408\u89e3\u6790\u5e93\u7cbe\u786e\u5b9a\u4f4d\u5e76\u53bb\u9664\u5e7f\u544a\u5185\u5bb9\uff0c\u786e\u4fdd\u7f51\u9875\u5176\u4ed6\u90e8\u5206\u4e0d\u53d7\u5f71\u54cd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u52a8\u6001\u5e7f\u544a\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u901a\u8fc7JavaScript\u52a8\u6001\u751f\u6210\u7684\u5e7f\u544a\u5185\u5bb9\uff0c\u53ef\u4ee5\u4f7f\u7528Selenium\u7b49\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\u5de5\u5177\u6a21\u62df\u7528\u6237\u884c\u4e3a\uff0c\u6355\u83b7\u6700\u7ec8\u6e32\u67d3\u7684\u7f51\u9875\u5185\u5bb9\uff0c\u518d\u8fdb\u884c\u5e7f\u544a\u53bb\u9664\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>\u53bb\u5e7f\u544a\u662f\u4e00\u4e2a\u590d\u6742\u4e14\u6301\u7eed\u53d8\u5316\u7684\u4efb\u52a1\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u4fdd\u6301\u7075\u6d3b\u6027<\/strong>\uff1a\u5e7f\u544a\u5f62\u5f0f\u548c\u6280\u672f\u4e0d\u65ad\u53d8\u5316\uff0c\u53bb\u5e7f\u544a\u7b56\u7565\u4e5f\u9700\u8981\u7075\u6d3b\u8c03\u6574\u3002<\/li>\n<li><strong>\u5173\u6ce8\u6027\u80fd<\/strong>\uff1a\u53bb\u5e7f\u544a\u8fc7\u7a0b\u53ef\u80fd\u5bf9\u6027\u80fd\u6709\u5f71\u54cd\uff0c\u5c24\u5176\u5728\u89e3\u6790\u548c\u5904\u7406\u5927\u578b\u7f51\u9875\u65f6\uff0c\u9700\u6ce8\u610f\u4f18\u5316\u3002<\/li>\n<li><strong>\u6570\u636e\u9690\u79c1<\/strong>\uff1a\u5904\u7406\u7f51\u9875\u6570\u636e\u65f6\uff0c\u6ce8\u610f\u4fdd\u62a4\u7528\u6237\u9690\u79c1\uff0c\u9075\u5faa\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u5408\u7406\u5730\u9009\u62e9\u548c\u7ec4\u5408\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u53bb\u9664\u7f51\u9875\u4e2d\u7684\u5e7f\u544a\u5185\u5bb9\uff0c\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u53bb\u9664\u89c6\u9891\u4e2d\u7684\u5e7f\u544a\uff1f<\/strong><br \/>\u4f7f\u7528Python\u53bb\u9664\u89c6\u9891\u4e2d\u7684\u5e7f\u544a\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5e93\u6765\u5b9e\u73b0\uff0c\u6bd4\u5982OpenCV\u548cmoviepy\u3002\u4f60\u53ef\u4ee5\u5148\u8bc6\u522b\u5e7f\u544a\u90e8\u5206\u7684\u65f6\u95f4\u6233\uff0c\u7136\u540e\u5229\u7528moviepy\u7684\u526a\u8f91\u529f\u80fd\u5c06\u8fd9\u4e9b\u90e8\u5206\u88c1\u526a\u6389\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u5408\u673a\u5668\u5b66\u4e60\u6a21\u578b\u6765\u8bc6\u522b\u5e7f\u544a\u5185\u5bb9\uff0c\u81ea\u52a8\u5316\u53bb\u9664\u8fc7\u7a0b\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5b9e\u73b0\u5e7f\u544a\u53bb\u9664\u529f\u80fd\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5e38\u7528\u7684\u5e93\u5305\u62ecOpenCV\u3001moviepy\u548cffmpeg-python\u3002OpenCV\u53ef\u4ee5\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u548c\u89c6\u9891\u5206\u6790\uff0c\u800cmoviepy\u5219\u7279\u522b\u9002\u5408\u89c6\u9891\u7f16\u8f91\u548c\u526a\u8f91\uff0cffmpeg-python\u662fffmpeg\u7684Python\u63a5\u53e3\uff0c\u9002\u5408\u5904\u7406\u97f3\u9891\u548c\u89c6\u9891\u8f6c\u6362\u3002\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5b8c\u6210\u5e7f\u544a\u53bb\u9664\u5de5\u4f5c\u3002<\/p>\n<p><strong>\u80fd\u5426\u4f7f\u7528Python\u6279\u91cf\u5904\u7406\u89c6\u9891\u4ee5\u53bb\u9664\u5e7f\u544a\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7f16\u5199\u811a\u672c\u6765\u6279\u91cf\u5904\u7406\u591a\u4e2a\u89c6\u9891\u6587\u4ef6\u3002\u901a\u8fc7\u904d\u5386\u89c6\u9891\u6587\u4ef6\u5939\uff0c\u63d0\u53d6\u6bcf\u4e2a\u89c6\u9891\u7684\u5e7f\u544a\u65f6\u95f4\u6233\uff0c\u7136\u540e\u5229\u7528\u524d\u9762\u63d0\u5230\u7684\u5e93\u8fdb\u884c\u81ea\u52a8\u526a\u8f91\u3002\u8fd9\u6837\u53ef\u4ee5\u5927\u5927\u8282\u7701\u65f6\u95f4\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u5c24\u5176\u9002\u5408\u9700\u8981\u5904\u7406\u5927\u91cf\u89c6\u9891\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53bb\u5e7f\u544a\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fc7\u6ee4\u5e7f\u544a\u3001\u5229\u7528\u7f51\u9875\u89e3\u6790\u5e93\u5206\u6790\u548c\u63d0\u53d6\u975e\u5e7f\u544a\u5185\u5bb9\u3001\u4f7f\u7528\u673a\u5668\u5b66\u4e60\u6a21\u578b [&hellip;]","protected":false},"author":3,"featured_media":948576,"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\/948572"}],"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=948572"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948572\/revisions"}],"predecessor-version":[{"id":948577,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/948572\/revisions\/948577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/948576"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=948572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=948572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=948572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}