{"id":1134401,"date":"2025-01-08T21:15:20","date_gmt":"2025-01-08T13:15:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1134401.html"},"modified":"2025-01-08T21:15:22","modified_gmt":"2025-01-08T13:15:22","slug":"python-%e4%b8%ad%e5%a6%82%e4%bd%95%e6%88%aa%e5%8f%96%e6%95%b0%e6%8d%ae%e5%9c%a8%e4%b8%80%e5%ae%9a%e5%8c%ba%e9%97%b4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1134401.html","title":{"rendered":"python \u4e2d\u5982\u4f55\u622a\u53d6\u6570\u636e\u5728\u4e00\u5b9a\u533a\u95f4"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103342\/a3626b7e-2631-4603-a635-a62eabfa5c1f.webp\" alt=\"python \u4e2d\u5982\u4f55\u622a\u53d6\u6570\u636e\u5728\u4e00\u5b9a\u533a\u95f4\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u622a\u53d6\u6570\u636e\u5728\u4e00\u5b9a\u533a\u95f4\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u3001\u5229\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u4f7f\u7528Pandas\u5e93\u4e2d\u7684\u65b9\u6cd5\u7b49\u3002<\/strong> \u5207\u7247\u64cd\u4f5c\u662f\u6700\u5e38\u89c1\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5217\u8868\u3001\u5b57\u7b26\u4e32\u7b49\u5e8f\u5217\u7c7b\u578b\u7684\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><p>Python\u7684\u5207\u7247\u64cd\u4f5c\u975e\u5e38\u5f3a\u5927\uff0c\u5141\u8bb8\u4f60\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\u6765\u622a\u53d6\u6570\u636e\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u5217\u8868 <code>data<\/code>\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 <code>data[start:end]<\/code> \u6765\u622a\u53d6\u4ece\u7d22\u5f15 <code>start<\/code> \u5230 <code>end-1<\/code> \u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5207\u7247\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u5207\u7247\u64cd\u4f5c\u662fPython\u4e2d\u5904\u7406\u5e8f\u5217\u6570\u636e\u7684\u57fa\u672c\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5217\u8868\u3001\u5b57\u7b26\u4e32\u3001\u5143\u7ec4\u7b49\u5e8f\u5217\u7c7b\u578b\u3002\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u622a\u53d6\u4f60\u9700\u8981\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u5217\u8868\u5207\u7247<\/h4>\n<\/p>\n<p><p>\u5217\u8868\u5207\u7247\u5141\u8bb8\u4f60\u901a\u8fc7\u7d22\u5f15\u8303\u56f4\u6765\u83b7\u53d6\u5b50\u5217\u8868\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u5217\u8868 <code>data<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u622a\u53d6\u4ece\u7d22\u5f152\u5230\u7d22\u5f155\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sub_data = data[2:6]<\/p>\n<p>print(sub_data)  # \u8f93\u51fa: [3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684 <code>data[2:6]<\/code> \u8868\u793a\u4ece\u7d22\u5f152\u5f00\u59cb\uff08\u5305\u542b\uff09\u5230\u7d22\u5f156\u7ed3\u675f\uff08\u4e0d\u5305\u542b\uff09\u7684\u6240\u6709\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h4>1.2 \u5b57\u7b26\u4e32\u5207\u7247<\/h4>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u5207\u7247\u4e0e\u5217\u8868\u5207\u7247\u7c7b\u4f3c\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32 <code>text<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, World!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u622a\u53d6\u4ece\u7d22\u5f157\u5230\u7d22\u5f1511\u7684\u5b50\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sub_text = text[7:12]<\/p>\n<p>print(sub_text)  # \u8f93\u51fa: World<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.3 \u5143\u7ec4\u5207\u7247<\/h4>\n<\/p>\n<p><p>\u5143\u7ec4\u5207\u7247\u4e5f\u4e0e\u5217\u8868\u7c7b\u4f3c\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u5143\u7ec4 <code>numbers<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = (10, 20, 30, 40, 50, 60, 70, 80, 90, 100)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8981\u622a\u53d6\u4ece\u7d22\u5f153\u5230\u7d22\u5f157\u7684\u5b50\u5143\u7ec4\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sub_numbers = numbers[3:8]<\/p>\n<p>print(sub_numbers)  # \u8f93\u51fa: (40, 50, 60, 70, 80)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5217\u8868\u63a8\u5bfc\u5f0f<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u65b0\u5217\u8868\uff0c\u5c24\u5176\u9002\u5408\u5728\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u7684\u6570\u636e\u8303\u56f4\u5185\u8fdb\u884c\u7b5b\u9009\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u8fc7\u6ee4\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6709\u4e00\u4e2a\u5305\u542b\u968f\u673a\u6570\u7684\u5217\u8868 <code>data<\/code>\uff0c\u4f60\u60f3\u8981\u622a\u53d6\u6240\u6709\u5728\u4e00\u5b9a\u8303\u56f4\u5185\u7684\u6570\uff0c\u4f8b\u5982\u57285\u523015\u4e4b\u95f4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [1, 5, 8, 12, 15, 20, 25, 30]<\/p>\n<p>filtered_data = [x for x in data if 5 &lt;= x &lt;= 15]<\/p>\n<p>print(filtered_data)  # \u8f93\u51fa: [5, 8, 12, 15]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2 \u590d\u6742\u6761\u4ef6<\/h4>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u8fd8\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u6761\u4ef6\u7b5b\u9009\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u7684\u5217\u8868\uff0c\u4f60\u60f3\u8981\u622a\u53d6\u67d0\u4e2a\u7279\u5b9a\u952e\u503c\u5728\u4e00\u5b9a\u8303\u56f4\u5185\u7684\u5b57\u5178\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [<\/p>\n<p>    {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 25},<\/p>\n<p>    {&#39;name&#39;: &#39;Bob&#39;, &#39;age&#39;: 30},<\/p>\n<p>    {&#39;name&#39;: &#39;Charlie&#39;, &#39;age&#39;: 35},<\/p>\n<p>    {&#39;name&#39;: &#39;David&#39;, &#39;age&#39;: 40}<\/p>\n<p>]<\/p>\n<p>filtered_data = [person for person in data if 30 &lt;= person[&#39;age&#39;] &lt;= 35]<\/p>\n<p>print(filtered_data)  # \u8f93\u51fa: [{&#39;name&#39;: &#39;Bob&#39;, &#39;age&#39;: 30}, {&#39;name&#39;: &#39;Charlie&#39;, &#39;age&#39;: 35}]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001Pandas\u5e93<\/h3>\n<\/p>\n<p><p>Pandas\u662f\u5904\u7406\u6570\u636e\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u5206\u6790\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u65b9\u6cd5\u6765\u622a\u53d6\u548c\u8fc7\u6ee4\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u4f7f\u7528Pandas\u622a\u53d6\u884c\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6709\u4e00\u4e2aPandas DataFrame <code>df<\/code>\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>iloc<\/code> \u65b9\u6cd5\u6309\u884c\u7d22\u5f15\u622a\u53d6\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = {<\/p>\n<p>    &#39;name&#39;: [&#39;Alice&#39;, &#39;Bob&#39;, &#39;Charlie&#39;, &#39;David&#39;],<\/p>\n<p>    &#39;age&#39;: [25, 30, 35, 40]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<h2><strong>\u622a\u53d6\u7b2c1\u5230\u7b2c3\u884c\uff08\u7d22\u5f15\u4ece0\u5f00\u59cb\uff09<\/strong><\/h2>\n<p>sub_df = df.iloc[1:4]<\/p>\n<p>print(sub_df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>      name  age<\/p>\n<p>1      Bob   30<\/p>\n<p>2  Charlie   35<\/p>\n<p>3    David   40<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 \u4f7f\u7528Pandas\u7b5b\u9009\u6570\u636e<\/h4>\n<\/p>\n<p><p>Pandas\u8fd8\u5141\u8bb8\u4f60\u6839\u636e\u6761\u4ef6\u7b5b\u9009\u6570\u636e\u3002\u4f8b\u5982\uff0c\u4f60\u60f3\u8981\u83b7\u53d6\u6240\u6709\u5e74\u9f84\u572830\u523035\u5c81\u4e4b\u95f4\u7684\u4eba\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">filtered_df = df[(df[&#39;age&#39;] &gt;= 30) &amp; (df[&#39;age&#39;] &lt;= 35)]<\/p>\n<p>print(filtered_df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>      name  age<\/p>\n<p>1      Bob   30<\/p>\n<p>2  Charlie   35<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001Numpy\u5e93<\/h3>\n<\/p>\n<p><p>Numpy\u662f\u5904\u7406\u5927\u89c4\u6a21\u6570\u503c\u6570\u636e\u7684\u9ad8\u6548\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u622a\u53d6\u548c\u8fc7\u6ee4\u6570\u7ec4\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>4.1 \u4f7f\u7528Numpy\u622a\u53d6\u6570\u7ec4<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6709\u4e00\u4e2aNumpy\u6570\u7ec4 <code>arr<\/code>\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u6765\u622a\u53d6\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])<\/p>\n<p>sub_arr = arr[2:6]<\/p>\n<p>print(sub_arr)  # \u8f93\u51fa: [3 4 5 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u4f7f\u7528Numpy\u7b5b\u9009\u6570\u636e<\/h4>\n<\/p>\n<p><p>Numpy\u8fd8\u5141\u8bb8\u4f60\u6839\u636e\u6761\u4ef6\u7b5b\u9009\u6570\u636e\u3002\u4f8b\u5982\uff0c\u4f60\u60f3\u8981\u83b7\u53d6\u6240\u6709\u57285\u523015\u4e4b\u95f4\u7684\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">arr = np.array([1, 5, 8, 12, 15, 20, 25, 30])<\/p>\n<p>filtered_arr = arr[(arr &gt;= 5) &amp; (arr &lt;= 15)]<\/p>\n<p>print(filtered_arr)  # \u8f93\u51fa: [ 5  8 12 15]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u622a\u53d6\u6570\u636e\u5728\u4e00\u5b9a\u533a\u95f4\u5185\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4f60\u7684\u6570\u636e\u7c7b\u578b\u548c\u5177\u4f53\u9700\u6c42\u3002<strong>\u5207\u7247\u64cd\u4f5c<\/strong> \u662f\u6700\u57fa\u7840\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5e8f\u5217\u7c7b\u578b\u7684\u6570\u636e\u3002<strong>\u5217\u8868\u63a8\u5bfc\u5f0f<\/strong> \u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u7b5b\u9009\u6570\u636e\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u7b80\u5355\u6761\u4ef6\u7684\u8fc7\u6ee4\u3002<strong>Pandas\u5e93<\/strong> \u662f\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u7684\u5229\u5668\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u65b9\u6cd5\u6765\u622a\u53d6\u548c\u8fc7\u6ee4\u6570\u636e\u3002<strong>Numpy\u5e93<\/strong> \u5219\u662f\u79d1\u5b66\u8ba1\u7b97\u548c\u5904\u7406\u6570\u503c\u6570\u636e\u7684\u9996\u9009\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u6280\u672f\uff0c\u4f60\u5c06\u80fd\u591f\u5728Python\u4e2d\u7075\u6d3b\u9ad8\u6548\u5730\u5904\u7406\u5404\u79cd\u6570\u636e\u622a\u53d6\u548c\u7b5b\u9009\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728 Python \u4e2d\u622a\u53d6\u7279\u5b9a\u8303\u56f4\u5185\u7684\u6570\u636e\uff1f<\/strong><br \/>\u5728 Python \u4e2d\uff0c\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u53ef\u4ee5\u8f7b\u677e\u622a\u53d6\u6570\u636e\u3002\u5bf9\u4e8e\u5217\u8868\u3001\u5143\u7ec4\u548c\u5b57\u7b26\u4e32\u7b49\u5e8f\u5217\u7c7b\u578b\uff0c\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\u6765\u83b7\u53d6\u6240\u9700\u7684\u5b50\u96c6\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u5217\u8868 <code>data = [1, 2, 3, 4, 5]<\/code>\uff0c\u82e5\u5e0c\u671b\u622a\u53d6\u7d22\u5f15\u4ece1\u52303\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>data[1:4]<\/code>\uff0c\u8fd4\u56de\u7684\u7ed3\u679c\u5c06\u662f <code>[2, 3, 4]<\/code>\u3002\u6b64\u5916\uff0cNumPy \u5e93\u4e5f\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\uff0c\u9002\u7528\u4e8e\u591a\u7ef4\u6570\u7ec4\u548c\u5927\u6570\u636e\u96c6\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 Pandas \u622a\u53d6 DataFrame \u4e2d\u7684\u6570\u636e\uff1f<\/strong><br \/>Pandas \u662f\u5904\u7406\u6570\u636e\u5206\u6790\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u65b9\u6cd5\u6765\u622a\u53d6 DataFrame \u4e2d\u7684\u6570\u636e\u3002\u5982\u679c\u6709\u4e00\u4e2a DataFrame <code>df<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528\u6761\u4ef6\u7b5b\u9009\u6765\u83b7\u53d6\u7279\u5b9a\u8303\u56f4\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c<code>df[(df[&#39;column_name&#39;] &gt;= lower_bound) &amp; (df[&#39;column_name&#39;] &lt;= upper_bound)]<\/code> \u53ef\u4ee5\u8fd4\u56de\u5728\u67d0\u4e00\u5217\u4e2d\u6ee1\u8db3\u6761\u4ef6\u7684\u6240\u6709\u884c\u6570\u636e\u3002\u8fd9\u79cd\u65b9\u5f0f\u975e\u5e38\u9002\u5408\u4e8e\u6570\u636e\u6e05\u6d17\u548c\u5206\u6790\u4efb\u52a1\u3002<\/p>\n<p><strong>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u4e3a\u4ec0\u4e48\u8981\u622a\u53d6\u7279\u5b9a\u8303\u56f4\u7684\u6570\u636e\uff1f<\/strong><br \/>\u5728\u6570\u636e\u5206\u6790\u8fc7\u7a0b\u4e2d\uff0c\u622a\u53d6\u7279\u5b9a\u8303\u56f4\u7684\u6570\u636e\u53ef\u4ee5\u5e2e\u52a9\u5206\u6790\u5e08\u4e13\u6ce8\u4e8e\u611f\u5174\u8da3\u7684\u533a\u57df\u3002\u4f8b\u5982\uff0c\u5206\u6790\u67d0\u4e00\u65f6\u95f4\u6bb5\u5185\u7684\u9500\u552e\u6570\u636e\u3001\u7279\u5b9a\u5e74\u9f84\u6bb5\u7528\u6237\u7684\u884c\u4e3a\u6a21\u5f0f\u7b49\u3002\u901a\u8fc7\u7f29\u5c0f\u6570\u636e\u8303\u56f4\uff0c\u5206\u6790\u5e08\u53ef\u4ee5\u66f4\u6e05\u6670\u5730\u8bc6\u522b\u8d8b\u52bf\u3001\u5f02\u5e38\u503c\u548c\u6a21\u5f0f\uff0c\u4ece\u800c\u505a\u51fa\u66f4\u6709\u9488\u5bf9\u6027\u7684\u51b3\u7b56\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u6570\u636e\u5904\u7406\u6548\u7387\uff0c\u8fd8\u80fd\u63d0\u5347\u5206\u6790\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u622a\u53d6\u6570\u636e\u5728\u4e00\u5b9a\u533a\u95f4\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u3001\u5229\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u4f7f\u7528Pandas\u5e93\u4e2d\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1134409,"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\/1134401"}],"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=1134401"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1134401\/revisions"}],"predecessor-version":[{"id":1134413,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1134401\/revisions\/1134413"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1134409"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1134401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1134401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1134401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}