{"id":1081237,"date":"2025-01-08T12:37:42","date_gmt":"2025-01-08T04:37:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1081237.html"},"modified":"2025-01-08T12:37:44","modified_gmt":"2025-01-08T04:37:44","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e4%b8%a4%e5%88%97%e6%95%b0%e5%ad%97%e6%8b%bc%e6%8e%a5-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1081237.html","title":{"rendered":"python\u5982\u4f55\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24183348\/e755d75c-69e2-4c81-85e5-4f9390fb9b86.webp\" alt=\"python\u5982\u4f55\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5<\/strong>\uff0c<strong>\u4f8b\u5982\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001NumPy\u5e93\u3001Pandas\u5e93<\/strong>\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u5373\u4f7f\u7528Pandas\u5e93\u3002<\/p>\n<\/p>\n<p><p>Pandas\u5e93\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5904\u7406\u6570\u636e\u3002\u901a\u8fc7\u4f7f\u7528Pandas\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5\u5728\u4e00\u8d77\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u79cd\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u4f7f\u7528Pandas\u5e93\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/p>\n<\/p>\n<p><p>Pandas\u5e93\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Pandas\u5e93\uff0c\u5982\u679c\u8fd8\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8cPandas\u5e93\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u62fc\u63a5\u4e24\u5217\u6570\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>data = {<\/p>\n<p>    &#39;column1&#39;: [1, 2, 3, 4, 5],<\/p>\n<p>    &#39;column2&#39;: [6, 7, 8, 9, 10]<\/p>\n<p>}<\/p>\n<h2><strong>\u521b\u5efaDataFrame<\/strong><\/h2>\n<p>df = pd.DataFrame(data)<\/p>\n<h2><strong>\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/h2>\n<p>df[&#39;concatenated&#39;] = df[&#39;column1&#39;].astype(str) + df[&#39;column2&#39;].astype(str)<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86Pandas\u5e93\uff0c\u5e76\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b\u4e24\u5217\u6570\u5b57\u7684DataFrame\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u8fd9\u4e24\u5217\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5e76\u4f7f\u7528\u52a0\u53f7\u8fdb\u884c\u62fc\u63a5\uff0c\u6700\u540e\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u4e00\u4e2a\u65b0\u7684\u5217\u4e2d\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u4f7f\u7528NumPy\u5e93\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/p>\n<\/p>\n<p><p>\u9664\u4e86Pandas\u5e93\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\u6765\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u3002NumPy\u5e93\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u591a\u7ef4\u6570\u7ec4\u5904\u7406\u5e93\uff0c\u7279\u522b\u9002\u7528\u4e8e\u6570\u503c\u8ba1\u7b97\u3002\u4e0b\u9762\u662f\u4f7f\u7528NumPy\u5e93\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>column1 = np.array([1, 2, 3, 4, 5])<\/p>\n<p>column2 = np.array([6, 7, 8, 9, 10])<\/p>\n<h2><strong>\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/h2>\n<p>concatenated = np.char.add(column1.astype(str), column2.astype(str))<\/p>\n<p>print(concatenated)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86NumPy\u5e93\uff0c\u5e76\u521b\u5efa\u4e86\u4e24\u4e2a\u5305\u542b\u6570\u5b57\u7684NumPy\u6570\u7ec4\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u8fd9\u4e24\u5217\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5e76\u4f7f\u7528<code>np.char.add<\/code>\u51fd\u6570\u8fdb\u884c\u62fc\u63a5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u6570\u636e\u91cf\u8f83\u5c0f\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u3002\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u8bed\u6cd5\uff0c\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b8c\u6210\u5217\u8868\u7684\u521b\u5efa\u548c\u64cd\u4f5c\u3002\u4e0b\u9762\u662f\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u793a\u4f8b\u6570\u636e<\/p>\n<p>column1 = [1, 2, 3, 4, 5]<\/p>\n<p>column2 = [6, 7, 8, 9, 10]<\/p>\n<h2><strong>\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/h2>\n<p>concatenated = [str(x) + str(y) for x, y in zip(column1, column2)]<\/p>\n<p>print(concatenated)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e24\u4e2a\u5305\u542b\u6570\u5b57\u7684\u5217\u8868\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u548c<code>zip<\/code>\u51fd\u6570\u5c06\u8fd9\u4e24\u5217\u6570\u5b57\u8fdb\u884c\u62fc\u63a5\u3002<\/p>\n<\/p>\n<p><p><strong>\u56db\u3001\u4f7f\u7528itertools\u5e93\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/p>\n<\/p>\n<p><p><code>itertools<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u7ec4\u5feb\u901f\u800c\u9ad8\u6548\u7684\u8fed\u4ee3\u5668\uff0c\u7528\u4e8e\u904d\u5386\u6570\u636e\u7ed3\u6784\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>itertools<\/code>\u5e93\u4e2d\u7684<code>zip_longest<\/code>\u51fd\u6570\u6765\u5904\u7406\u957f\u5ea6\u4e0d\u7b49\u7684\u4e24\u5217\u6570\u5b57\u3002\u4e0b\u9762\u662f\u4f7f\u7528<code>itertools<\/code>\u5e93\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>column1 = [1, 2, 3, 4, 5]<\/p>\n<p>column2 = [6, 7, 8, 9, 10]<\/p>\n<h2><strong>\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/h2>\n<p>concatenated = [str(x) + str(y) for x, y in itertools.zip_longest(column1, column2, fillvalue=&#39;&#39;)]<\/p>\n<p>print(concatenated)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86<code>itertools<\/code>\u5e93\uff0c\u5e76\u521b\u5efa\u4e86\u4e24\u4e2a\u5305\u542b\u6570\u5b57\u7684\u5217\u8868\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528<code>itertools.zip_longest<\/code>\u51fd\u6570\u5c06\u8fd9\u4e24\u5217\u6570\u5b57\u8fdb\u884c\u62fc\u63a5\u3002\u5982\u679c\u4e24\u5217\u6570\u5b57\u7684\u957f\u5ea6\u4e0d\u7b49\uff0c<code>zip_longest<\/code>\u51fd\u6570\u4f1a\u4f7f\u7528\u6307\u5b9a\u7684<code>fillvalue<\/code>\u8fdb\u884c\u586b\u5145\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e94\u3001\u4f7f\u7528map\u51fd\u6570\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/p>\n<\/p>\n<p><p><code>map<\/code>\u51fd\u6570\u662f\u4e00\u4e2a\u5185\u7f6e\u7684\u9ad8\u9636\u51fd\u6570\uff0c\u53ef\u4ee5\u5c06\u6307\u5b9a\u7684\u51fd\u6570\u5e94\u7528\u4e8e\u8fed\u4ee3\u5668\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u8fed\u4ee3\u5668\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>map<\/code>\u51fd\u6570\u6765\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u3002\u4e0b\u9762\u662f\u4f7f\u7528<code>map<\/code>\u51fd\u6570\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u793a\u4f8b\u6570\u636e<\/p>\n<p>column1 = [1, 2, 3, 4, 5]<\/p>\n<p>column2 = [6, 7, 8, 9, 10]<\/p>\n<h2><strong>\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/h2>\n<p>concatenated = list(map(lambda x, y: str(x) + str(y), column1, column2))<\/p>\n<p>print(concatenated)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e24\u4e2a\u5305\u542b\u6570\u5b57\u7684\u5217\u8868\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528<code>map<\/code>\u51fd\u6570\u548c\u4e00\u4e2a\u533f\u540d\u51fd\u6570\uff08<code>lambda<\/code>\u51fd\u6570\uff09\u5c06\u8fd9\u4e24\u5217\u6570\u5b57\u8fdb\u884c\u62fc\u63a5\u3002<\/p>\n<\/p>\n<p><p><strong>\u516d\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/p>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662fPython\u4e2d\u4e00\u79cd\u5e38\u7528\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u6765\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u3002\u4e0b\u9762\u662f\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u793a\u4f8b\u6570\u636e<\/p>\n<p>column1 = [1, 2, 3, 4, 5]<\/p>\n<p>column2 = [6, 7, 8, 9, 10]<\/p>\n<h2><strong>\u62fc\u63a5\u4e24\u5217\u6570\u5b57<\/strong><\/h2>\n<p>concatenated = [f&#39;{x}{y}&#39; for x, y in zip(column1, column2)]<\/p>\n<p>print(concatenated)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e24\u4e2a\u5305\u542b\u6570\u5b57\u7684\u5217\u8868\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff08f-string\uff09\u548c<code>zip<\/code>\u51fd\u6570\u5c06\u8fd9\u4e24\u5217\u6570\u5b57\u8fdb\u884c\u62fc\u63a5\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0a\u662f\u51e0\u79cd\u5728Python\u4e2d\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u7684\u5e38\u7528\u65b9\u6cd5\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u4e2a\u4eba\u504f\u597d\u3002\u5bf9\u4e8e\u5927\u578b\u6570\u636e\u96c6\uff0c\u5efa\u8bae\u4f7f\u7528Pandas\u5e93\u6216NumPy\u5e93\uff0c\u56e0\u4e3a\u5b83\u4eec\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u3002\u800c\u5bf9\u4e8e\u5c0f\u578b\u6570\u636e\u96c6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001<code>itertools<\/code>\u5e93\u3001<code>map<\/code>\u51fd\u6570\u6216\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u8fd9\u4e9b\u65b9\u6cd5\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u5904\u7406\u548c\u62fc\u63a5\u4e24\u5217\u6570\u5b57\u3002\u5982\u679c\u4f60\u6709\u5176\u4ed6\u95ee\u9898\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\uff0c\u8bf7\u968f\u65f6\u63d0\u95ee\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5\u4e3a\u4e00\u5217\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u8fde\u63a5\u64cd\u4f5c\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5\u6210\u4e00\u5217\u3002\u9996\u5148\uff0c\u5c06\u6bcf\u4e00\u5217\u7684\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528<code>+<\/code>\u8fd0\u7b97\u7b26\u6216<code>.join()<\/code>\u65b9\u6cd5\u8fdb\u884c\u62fc\u63a5\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u5229\u7528pandas\u5e93\u5904\u7406\u6570\u636e\u6846\uff0c\u4ece\u800c\u7b80\u5316\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>df[&#39;column1&#39;].astype(str) + df[&#39;column2&#39;].astype(str)<\/code>\u53ef\u4ee5\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5\u6210\u4e00\u5217\u3002<\/p>\n<p><strong>\u4f7f\u7528pandas\u65f6\uff0c\u5982\u4f55\u5904\u7406\u4e0d\u540c\u6570\u636e\u7c7b\u578b\u7684\u5217\uff1f<\/strong><br \/>\u5728\u4f7f\u7528pandas\u8fdb\u884c\u6570\u636e\u62fc\u63a5\u65f6\uff0c\u5982\u679c\u67d0\u4e00\u5217\u5305\u542b\u975e\u6570\u5b57\u7c7b\u578b\u7684\u6570\u636e\uff0c\u5efa\u8bae\u5148\u4f7f\u7528<code>astype(str)<\/code>\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5728\u62fc\u63a5\u65f6\u4e0d\u4f1a\u51fa\u73b0\u7c7b\u578b\u9519\u8bef\u6216\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\u3002\u5904\u7406\u5b8c\u6bd5\u540e\uff0c\u518d\u901a\u8fc7<code>+<\/code>\u64cd\u4f5c\u7b26\u5c06\u4e24\u5217\u7684\u5b57\u7b26\u4e32\u8fde\u63a5\u8d77\u6765\uff0c\u751f\u6210\u65b0\u7684\u62fc\u63a5\u5217\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u7528\u5176\u4ed6\u65b9\u6cd5\u6765\u62fc\u63a5\u5217\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>+<\/code>\u8fd0\u7b97\u7b26\u5916\uff0c\u8fd8\u53ef\u4ee5\u5229\u7528<code>apply()<\/code>\u51fd\u6570\u7ed3\u5408\u81ea\u5b9a\u4e49\u7684\u62fc\u63a5\u51fd\u6570\uff0c\u6216\u8005\u4f7f\u7528<code>agg()<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u62fc\u63a5\u9700\u6c42\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u5c06\u4e24\u5217\u62fc\u63a5\u5e76\u8fd4\u56de\u7ed3\u679c\uff0c\u7136\u540e\u5728DataFrame\u4e0a\u8c03\u7528<code>apply()<\/code>\u5b9e\u73b0\u62fc\u63a5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7075\u6d3b\u5904\u7406\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5c06\u4e24\u5217\u6570\u5b57\u62fc\u63a5\uff0c\u4f8b\u5982\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001NumPy\u5e93\u3001Pandas\u5e93\u3002\u5728\u8fd9\u91cc\uff0c\u6211 [&hellip;]","protected":false},"author":3,"featured_media":1081245,"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\/1081237"}],"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=1081237"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1081237\/revisions"}],"predecessor-version":[{"id":1081247,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1081237\/revisions\/1081247"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1081245"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1081237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1081237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1081237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}