{"id":985547,"date":"2024-12-27T07:37:35","date_gmt":"2024-12-26T23:37:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/985547.html"},"modified":"2024-12-27T07:37:37","modified_gmt":"2024-12-26T23:37:37","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e6%95%b0%e6%8d%ae%e5%8c%b9%e9%85%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/985547.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5339\u914d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212650\/25d7516c-758e-4b3a-a6e7-923bb8d3f561.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u6570\u636e\u5339\u914d\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5b9e\u73b0\u6570\u636e\u5339\u914d\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u5178\u3001\u96c6\u5408\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001Pandas\u5e93\u7b49\u3002\u5b57\u5178\u53ef\u4ee5\u7528\u4e8e\u5feb\u901f\u67e5\u627e\u548c\u5339\u914d\u952e\u503c\u5bf9\uff0c\u96c6\u5408\u9002\u7528\u4e8e\u96c6\u5408\u95f4\u7684\u4ea4\u96c6\u6216\u5dee\u96c6\u64cd\u4f5c\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u7528\u4e8e\u590d\u6742\u6a21\u5f0f\u7684\u6587\u672c\u5339\u914d\uff0c\u800cPandas\u5e93\u5219\u9002\u5408\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u7684\u5339\u914d\u548c\u5408\u5e76\u3002<\/strong>\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cPandas\u5e93\u56e0\u5176\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\u800c\u5e7f\u53d7\u6b22\u8fce\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Pandas\u53ef\u4ee5\u901a\u8fc7merge\u51fd\u6570\u8f7b\u677e\u5b9e\u73b0\u4e24\u4e2a\u6570\u636e\u6846\u7684\u5339\u914d\u548c\u5408\u5e76\u3002merge\u51fd\u6570\u80fd\u591f\u6839\u636e\u4e00\u4e2a\u6216\u591a\u4e2a\u952e\u5c06\u4e24\u4e2a\u6570\u636e\u6846\u5408\u5e76\u5728\u4e00\u8d77\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u9884\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b57\u5178\u548c\u96c6\u5408\u5339\u914d<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u548c\u96c6\u5408\u662fPython\u4e2d\u5185\u7f6e\u7684\u6570\u636e\u7ed3\u6784\uff0c\u9002\u5408\u7528\u4e8e\u5feb\u901f\u67e5\u627e\u548c\u5339\u914d\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b57\u5178\u5339\u914d<\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u662f\u4e00\u79cd\u952e\u503c\u5bf9\u6570\u636e\u7ed3\u6784\uff0c\u67e5\u627e\u901f\u5ea6\u975e\u5e38\u5feb\u3002\u53ef\u4ee5\u901a\u8fc7\u952e\u6765\u83b7\u53d6\u5bf9\u5e94\u7684\u503c\uff0c\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u5339\u914d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data_dict = {&#39;apple&#39;: 2, &#39;banana&#39;: 5, &#39;orange&#39;: 3}<\/p>\n<p>key_to_match = &#39;banana&#39;<\/p>\n<p>if key_to_match in data_dict:<\/p>\n<p>    print(f&quot;Found: {key_to_match} with value {data_dict[key_to_match]}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u68c0\u67e5\u5b57\u5178\u4e2d\u662f\u5426\u5b58\u5728\u67d0\u4e2a\u952e\u6765\u5b9e\u73b0\u5339\u914d\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u96c6\u5408\u5339\u914d<\/li>\n<\/ol>\n<p><p>\u96c6\u5408\u662f\u53e6\u4e00\u79cd\u5185\u7f6e\u6570\u636e\u7ed3\u6784\uff0c\u9002\u5408\u7528\u4e8e\u96c6\u5408\u4e4b\u95f4\u7684\u4ea4\u96c6\u3001\u5e76\u96c6\u548c\u5dee\u96c6\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">set_a = {1, 2, 3, 4}<\/p>\n<p>set_b = {3, 4, 5, 6}<\/p>\n<p>intersection = set_a &amp; set_b<\/p>\n<p>print(f&quot;Intersection: {intersection}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u96c6\u5408\u64cd\u4f5c\u6765\u5b9e\u73b0\u6570\u636e\u5339\u914d\uff0c\u627e\u51fa\u4e24\u4e2a\u96c6\u5408\u7684\u4ea4\u96c6\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u5339\u914d\u5de5\u5177\uff0c\u9002\u5408\u7528\u4e8e\u590d\u6742\u7684\u6587\u672c\u5339\u914d\u3002<\/p>\n<\/p>\n<ol>\n<li>\u57fa\u672c\u7528\u6cd5<\/li>\n<\/ol>\n<p><p>Python\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\uff0c\u4f7f\u7528<code>re.search()<\/code>\u3001<code>re.match()<\/code>\u3001<code>re.findall()<\/code>\u7b49\u51fd\u6570\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u540c\u7c7b\u578b\u7684\u5339\u914d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>pattern = r&#39;\\b\\d{3}-\\d{2}-\\d{4}\\b&#39;<\/p>\n<p>text = &quot;My phone number is 123-45-6789.&quot;<\/p>\n<p>match = re.search(pattern, text)<\/p>\n<p>if match:<\/p>\n<p>    print(f&quot;Matched: {match.group()}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;No match found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u7f8e\u56fd\u793e\u4f1a\u5b89\u5168\u53f7\u7801\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u9ad8\u7ea7\u7528\u6cd5<\/li>\n<\/ol>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u8fd8\u652f\u6301\u5206\u7ec4\u3001\u66ff\u6362\u3001\u6355\u83b7\u7b49\u9ad8\u7ea7\u7279\u6027\uff0c\u53ef\u4ee5\u6ee1\u8db3\u590d\u6742\u7684\u5339\u914d\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pattern = r&#39;(\\d{3})-(\\d{2})-(\\d{4})&#39;<\/p>\n<p>match = re.match(pattern, text)<\/p>\n<p>if match:<\/p>\n<p>    area, group, serial = match.groups()<\/p>\n<p>    print(f&quot;Area: {area}, Group: {group}, Serial: {serial}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u5206\u7ec4\u6355\u83b7\uff0c\u53ef\u4ee5\u63d0\u53d6\u51fa\u5339\u914d\u6a21\u5f0f\u4e2d\u7684\u5b50\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001Pandas\u6570\u636e\u5339\u914d<\/p>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u5339\u914d\u548c\u5408\u5e76\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\u57fa\u672c\u5408\u5e76\u64cd\u4f5c<\/li>\n<\/ol>\n<p><p>Pandas\u7684<code>merge()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u4e24\u4e2a\u6570\u636e\u6846\u7684\u5339\u914d\u548c\u5408\u5e76\uff0c\u7c7b\u4f3c\u4e8eSQL\u7684JOIN\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>df1 = pd.DataFrame({<\/p>\n<p>    &#39;key&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;],<\/p>\n<p>    &#39;value1&#39;: [1, 2, 3]<\/p>\n<p>})<\/p>\n<p>df2 = pd.DataFrame({<\/p>\n<p>    &#39;key&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;D&#39;],<\/p>\n<p>    &#39;value2&#39;: [4, 5, 6]<\/p>\n<p>})<\/p>\n<p>merged_df = pd.merge(df1, df2, on=&#39;key&#39;, how=&#39;inner&#39;)<\/p>\n<p>print(merged_df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u4e24\u4e2a\u6570\u636e\u6846\u6839\u636e<code>key<\/code>\u5217\u8fdb\u884c\u5339\u914d\uff0c\u5e76\u5408\u5e76\u6210\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u6846\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u590d\u6742\u5339\u914d\u64cd\u4f5c<\/li>\n<\/ol>\n<p><p>Pandas\u8fd8\u652f\u6301\u591a\u952e\u5408\u5e76\u3001\u7d22\u5f15\u5408\u5e76\u4ee5\u53ca\u6761\u4ef6\u5408\u5e76\u7b49\u590d\u6742\u64cd\u4f5c\uff0c\u9002\u5408\u7528\u4e8e\u5927\u578b\u6570\u636e\u96c6\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u591a\u952e\u5408\u5e76<\/p>\n<p>df1 = pd.DataFrame({<\/p>\n<p>    &#39;key1&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;],<\/p>\n<p>    &#39;key2&#39;: [&#39;X&#39;, &#39;Y&#39;, &#39;Z&#39;],<\/p>\n<p>    &#39;value1&#39;: [1, 2, 3]<\/p>\n<p>})<\/p>\n<p>df2 = pd.DataFrame({<\/p>\n<p>    &#39;key1&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;D&#39;],<\/p>\n<p>    &#39;key2&#39;: [&#39;X&#39;, &#39;Y&#39;, &#39;W&#39;],<\/p>\n<p>    &#39;value2&#39;: [4, 5, 6]<\/p>\n<p>})<\/p>\n<p>merged_df = pd.merge(df1, df2, on=[&#39;key1&#39;, &#39;key2&#39;], how=&#39;outer&#39;)<\/p>\n<p>print(merged_df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u6307\u5b9a\u591a\u4e2a\u952e\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u6570\u636e\u5339\u914d\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001NumPy\u6570\u7ec4\u5339\u914d<\/p>\n<\/p>\n<p><p>NumPy\u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\u57fa\u672c\u5339\u914d\u64cd\u4f5c<\/li>\n<\/ol>\n<p><p>NumPy\u7684<code>numpy.isin()<\/code>\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u68c0\u67e5\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u662f\u5426\u5b58\u5728\u4e8e\u53e6\u4e00\u4e2a\u6570\u7ec4\u4e2d\uff0c\u7c7b\u4f3c\u4e8e\u96c6\u5408\u7684\u4ea4\u96c6\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>array1 = np.array([1, 2, 3, 4])<\/p>\n<p>array2 = np.array([3, 4, 5, 6])<\/p>\n<p>matched = np.isin(array1, array2)<\/p>\n<p>print(array1[matched])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>numpy.isin()<\/code>\u51fd\u6570\u7528\u4e8e\u627e\u51fa<code>array1<\/code>\u4e2d\u5b58\u5728\u4e8e<code>array2<\/code>\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u9ad8\u7ea7\u5339\u914d\u64cd\u4f5c<\/li>\n<\/ol>\n<p><p>NumPy\u8fd8\u63d0\u4f9b\u4e86\u5e7f\u64ad\u3001\u63a9\u7801\u548c\u6761\u4ef6\u9009\u62e9\u7b49\u9ad8\u7ea7\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u5339\u914d\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u63a9\u7801\u8fdb\u884c\u6761\u4ef6\u9009\u62e9<\/p>\n<p>mask = array1 &gt; 2<\/p>\n<p>selected = array1[mask]<\/p>\n<p>print(selected)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u63a9\u7801\u64cd\u4f5c\uff0c\u53ef\u4ee5\u6839\u636e\u6761\u4ef6\u9009\u62e9\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5b9e\u73b0\u6570\u636e\u5339\u914d\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u6570\u636e\u7ed3\u6784\u7684\u7279\u6027\u3002\u5b57\u5178\u548c\u96c6\u5408\u9002\u5408\u4e8e\u5c0f\u89c4\u6a21\u6570\u636e\u7684\u5feb\u901f\u5339\u914d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u9002\u7528\u4e8e\u590d\u6742\u7684\u6587\u672c\u5339\u914d\uff0cPandas\u548cNumPy\u5219\u9002\u5408\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u7684\u5904\u7406\u548c\u5206\u6790\u3002\u901a\u8fc7\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5b8c\u6210\u5404\u79cd\u6570\u636e\u5339\u914d\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u6570\u636e\u5339\u914d\u65b9\u6cd5\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b9e\u73b0\u6570\u636e\u5339\u914d\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684\u6570\u636e\u7ed3\u6784\uff08\u5982\u5217\u8868\u3001\u5b57\u5178\u548c\u96c6\u5408\uff09\u8fdb\u884c\u5339\u914d\u3001\u5229\u7528Pandas\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u5339\u914d\u3001\u4ee5\u53ca\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5b57\u7b26\u4e32\u5339\u914d\u3002\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u8fc7\u6ee4\u51fd\u6570\u4ee5\u53ca\u5408\u5e76\u64cd\u4f5c\uff0c\u7528\u6237\u53ef\u4ee5\u9ad8\u6548\u5730\u67e5\u627e\u548c\u5339\u914d\u6570\u636e\u3002\u6b64\u5916\uff0cNumPy\u5e93\u4e5f\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\uff0c\u9002\u5408\u8fdb\u884c\u6570\u503c\u6570\u636e\u7684\u5339\u914d\u3002<\/p>\n<p><strong>\u5728\u5904\u7406\u6570\u636e\u65f6\uff0c\u5982\u4f55\u63d0\u9ad8\u5339\u914d\u7684\u6548\u7387\uff1f<\/strong><br \/>\u4e3a\u4e86\u63d0\u9ad8\u6570\u636e\u5339\u914d\u7684\u6548\u7387\uff0c\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u51e0\u4e2a\u7b56\u7565\uff1a\u9996\u5148\uff0c\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\uff0c\u4f8b\u5982\u4f7f\u7528\u96c6\u5408\u6765\u6d88\u9664\u91cd\u590d\u9879\uff0c\u63d0\u5347\u67e5\u627e\u901f\u5ea6\uff1b\u5176\u6b21\uff0c\u5229\u7528Pandas\u7684\u5411\u91cf\u5316\u64cd\u4f5c\uff0c\u907f\u514d\u4f7f\u7528\u5faa\u73af\u6765\u5904\u7406\u6570\u636e\uff1b\u8fd8\u6709\uff0c\u8003\u8651\u5bf9\u6570\u636e\u8fdb\u884c\u9884\u5904\u7406\uff0c\u4f8b\u5982\u53bb\u91cd\u3001\u6392\u5e8f\u6216\u7d22\u5f15\uff0c\u80fd\u591f\u663e\u8457\u51cf\u5c11\u5339\u914d\u65f6\u7684\u8ba1\u7b97\u91cf\u3002\u8fd9\u4e9b\u65b9\u6cd5\u7ed3\u5408\u4f7f\u7528\uff0c\u5c06\u5927\u5927\u63d0\u9ad8\u5339\u914d\u7684\u901f\u5ea6\u548c\u6548\u7387\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u5904\u7406\u6a21\u7cca\u5339\u914d\u7684\u9700\u6c42\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528FuzzyWuzzy\u5e93\u8fdb\u884c\u6a21\u7cca\u5339\u914d\u3002\u8fd9\u4e2a\u5e93\u652f\u6301\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u76f8\u4f3c\u5ea6\u6bd4\u8f83\uff0c\u80fd\u591f\u8bc6\u522b\u51fa\u62fc\u5199\u9519\u8bef\u6216\u683c\u5f0f\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\u3002\u4f7f\u7528Levenshtein\u8ddd\u79bb\u7b97\u6cd5\uff0cFuzzyWuzzy\u53ef\u4ee5\u8ba1\u7b97\u5b57\u7b26\u4e32\u4e4b\u95f4\u7684\u76f8\u4f3c\u5ea6\uff0c\u4ece\u800c\u5e2e\u52a9\u7528\u6237\u5728\u4e0d\u5b8c\u5168\u5339\u914d\u7684\u60c5\u51b5\u4e0b\u627e\u5230\u76f8\u5173\u6570\u636e\u3002\u6b64\u5916\uff0cPandas\u4e5f\u53ef\u4ee5\u4e0eFuzzyWuzzy\u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u6a21\u7cca\u5339\u914d\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5b9e\u73b0\u6570\u636e\u5339\u914d\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u5178\u3001\u96c6\u5408\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001Pandas\u5e93\u7b49\u3002\u5b57\u5178\u53ef\u4ee5\u7528\u4e8e\u5feb\u901f\u67e5 [&hellip;]","protected":false},"author":3,"featured_media":985561,"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\/985547"}],"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=985547"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/985547\/revisions"}],"predecessor-version":[{"id":985563,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/985547\/revisions\/985563"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/985561"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=985547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=985547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=985547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}