{"id":1087845,"date":"2025-01-08T13:38:54","date_gmt":"2025-01-08T05:38:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1087845.html"},"modified":"2025-01-08T13:38:57","modified_gmt":"2025-01-08T05:38:57","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%85%83%e7%a5%96%e8%bd%ac%e6%8d%a2%e4%b8%ba%e5%88%97%e8%a1%a8-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1087845.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5143\u7956\u8f6c\u6362\u4e3a\u5217\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200554\/74d01b58-7dc3-4047-b0ff-d5f54f8b8bac.webp\" alt=\"python\u5982\u4f55\u5c06\u5143\u7956\u8f6c\u6362\u4e3a\u5217\u8868\" \/><\/p>\n<p><p> <strong>Python\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570list()\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u4ee5\u53ca\u4f7f\u7528\u5faa\u73af\u7b49\u65b9\u6cd5\u3002<\/strong> \u5176\u4e2d\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>list()<\/code>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>list()<\/code>\uff1a<\/strong> \u8fd9\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5feb\u901f\u5c06\u4e00\u4e2a\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u3002\u53ea\u9700\u8981\u5c06\u5143\u7ec4\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9<code>list()<\/code>\u51fd\u6570\u5373\u53ef\u3002\u6bd4\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = list(tuple_data)<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>list()<\/code><\/h3>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u5185\u7f6e\u51fd\u6570<code>list()<\/code>\uff0c\u5b83\u80fd\u591f\u5c06\u4efb\u4f55\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff08\u5305\u62ec\u5143\u7ec4\uff09\u8f6c\u6362\u4e3a\u5217\u8868\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = list(tuple_data)<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u5355\uff0c\u800c\u4e14\u6267\u884c\u6548\u7387\u9ad8\u3002\u5bf9\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u7684\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u7684\u9700\u6c42\uff0c\u4f7f\u7528<code>list()<\/code>\u51fd\u6570\u662f\u6700\u4f73\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662fPython\u4e2d\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u751f\u6210\u5217\u8868\u3002\u867d\u7136\u5b83\u7684\u4f7f\u7528\u573a\u666f\u66f4\u5e7f\u6cdb\uff0c\u4f46\u540c\u6837\u53ef\u4ee5\u7528\u6765\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = [item for item in tuple_data]<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7684\u597d\u5904\u662f\u4ee3\u7801\u7b80\u6d01\uff0c\u5e76\u4e14\u5bb9\u6613\u7406\u89e3\u3002\u5c24\u5176\u5728\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u53d8\u6362\u6216\u8fc7\u6ee4\u65f6\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u663e\u5f97\u975e\u5e38\u5b9e\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u4f7f\u7528\u5faa\u73af\u7684\u65b9\u6cd5\u76f8\u5bf9\u8f83\u4e3a\u5197\u957f\uff0c\u4f46\u5b83\u5728\u67d0\u4e9b\u7279\u5b9a\u573a\u666f\u4e0b\u4ecd\u7136\u5177\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u3002\u6bd4\u5982\u5728\u9700\u8981\u5bf9\u5143\u7ec4\u4e2d\u7684\u5143\u7d20\u8fdb\u884c\u590d\u6742\u64cd\u4f5c\u65f6\uff0c\u5faa\u73af\u7684\u7075\u6d3b\u6027\u66f4\u9ad8\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = []<\/p>\n<p>for item in tuple_data:<\/p>\n<p>    list_data.append(item)<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u5faa\u73af\u7684\u597d\u5904\u662f\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u8f83\u9ad8\uff0c\u5c24\u5176\u9002\u5408\u5728\u6570\u636e\u5904\u7406\u903b\u8f91\u8f83\u4e3a\u590d\u6742\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528map()\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>map()<\/code>\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u9ad8\u9636\u51fd\u6570\uff0c\u53ef\u4ee5\u5bf9\u53ef\u8fed\u4ee3\u5bf9\u8c61\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u5e94\u7528\u4e00\u4e2a\u51fd\u6570\u3002\u867d\u7136<code>map()<\/code>\u51fd\u6570\u4e3b\u8981\u7528\u4e8e\u6570\u636e\u53d8\u6362\uff0c\u4f46\u5b83\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = list(map(lambda x: x, tuple_data))<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u867d\u7136\u7a0d\u663e\u7e41\u7410\uff0c\u4f46\u5728\u67d0\u4e9b\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u9884\u5904\u7406\u7684\u573a\u666f\u4e0b\u975e\u5e38\u5b9e\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528<code>*<\/code>\u89e3\u5305\u64cd\u4f5c\u7b26<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684<code>*<\/code>\u89e3\u5305\u64cd\u4f5c\u7b26\u53ef\u4ee5\u5c06\u53ef\u8fed\u4ee3\u5bf9\u8c61\u4e2d\u7684\u5143\u7d20\u4e00\u6b21\u6027\u63d0\u53d6\u51fa\u6765\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = [*tuple_data]<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u6d01\uff0c\u800c\u4e14\u9ad8\u6548\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u9700\u8981\u5feb\u901f\u8f6c\u6362\u6570\u636e\u7c7b\u578b\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528<code>copy<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u9700\u8981\u6df1\u62f7\u8d1d\u7684\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>copy<\/code>\u6a21\u5757\u6765\u8f6c\u6362\u5143\u7ec4\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import copy<\/p>\n<p>tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = copy.deepcopy(tuple_data)<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u4e0d\u5e38\u7528\uff0c\u4f46\u5728\u9700\u8981\u6df1\u62f7\u8d1d\u7684\u60c5\u51b5\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528<code>itertools<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>itertools<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\u96c6\uff0c\u4e3b\u8981\u7528\u4e8e\u9ad8\u6548\u5904\u7406\u5faa\u73af\u548c\u8fed\u4ee3\u3002\u5728\u67d0\u4e9b\u590d\u6742\u6570\u636e\u5904\u7406\u4efb\u52a1\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>itertools<\/code>\u6a21\u5757\u6765\u8f6c\u6362\u5143\u7ec4\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = list(itertools.islice(tuple_data, len(tuple_data)))<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u76f8\u5bf9\u590d\u6742\uff0c\u4f46\u5728\u5904\u7406\u5927\u6570\u636e\u96c6\u6216\u9700\u8981\u8fdb\u884c\u590d\u6742\u8fed\u4ee3\u64cd\u4f5c\u65f6\u975e\u5e38\u6709\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u4f7f\u7528<code>numpy<\/code>\u5e93<\/h3>\n<\/p>\n<p><p><code>numpy<\/code>\u662fPython\u4e2d\u975e\u5e38\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u5e93\uff0c\u53ef\u4ee5\u9ad8\u6548\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u3002\u867d\u7136\u4e3b\u8981\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\uff0c\u4f46\u5b83\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = np.array(tuple_data).tolist()<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u8fdb\u884c\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u4f7f\u7528<code>pandas<\/code>\u5e93<\/h3>\n<\/p>\n<p><p><code>pandas<\/code>\u662fPython\u4e2d\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u3002\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u5e93\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>tuple_data = (1, 2, 3, 4)<\/p>\n<p>list_data = pd.Series(tuple_data).tolist()<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u4efb\u52a1\uff0c\u5c24\u5176\u5728\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u590d\u6742\u64cd\u4f5c\u65f6\u975e\u5e38\u6709\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u4f7f\u7528<code>collections<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>collections<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u5bb9\u5668\u6570\u636e\u7c7b\u578b\u7684\u5de5\u5177\u96c6\u3002\u5728\u67d0\u4e9b\u7279\u5b9a\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>collections<\/code>\u6a21\u5757\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import deque<\/p>\n<p>tuple_data = (1, 2, 3, 4)<\/p>\n<p>deque_data = deque(tuple_data)<\/p>\n<p>list_data = list(deque_data)<\/p>\n<p>print(list_data)  # \u8f93\u51fa [1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u4e0d\u5e38\u7528\uff0c\u4f46\u5728\u5904\u7406\u961f\u5217\u6570\u636e\u65f6\u975e\u5e38\u6709\u6548\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u5f0f\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684<code>list()<\/code>\u51fd\u6570\uff0c\u8fd8\u662f\u590d\u6742\u7684<code>numpy<\/code>\u548c<code>pandas<\/code>\u5e93\uff0c\u90fd\u80fd\u9ad8\u6548\u5b8c\u6210\u8fd9\u4e2a\u4efb\u52a1\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u975e\u5e38\u7b80\u5355\u3002\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>list()<\/code>\u51fd\u6570\u6765\u5b8c\u6210\u8fd9\u4e00\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u540d\u4e3a<code>my_tuple<\/code>\u7684\u5143\u7ec4\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7<code>my_list = list(my_tuple)<\/code>\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\u3002\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u5229\u7528\u5217\u8868\u7684\u53ef\u53d8\u6027\u8fdb\u884c\u66f4\u591a\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u8f6c\u6362\u540e\u7684\u5217\u8868\u4e0e\u539f\u5143\u7ec4\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f<\/strong><br \/>\u5143\u7ec4\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u8fd9\u610f\u5473\u7740\u4e00\u65e6\u521b\u5efa\u5c31\u65e0\u6cd5\u4fee\u6539\u3002\u800c\u5217\u8868\u662f\u53ef\u53d8\u7684\uff0c\u5141\u8bb8\u6dfb\u52a0\u3001\u5220\u9664\u548c\u4fee\u6539\u5143\u7d20\u3002\u56e0\u6b64\uff0c\u8f6c\u6362\u540e\u7684\u5217\u8868\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\uff0c\u5982\u6dfb\u52a0\u65b0\u5143\u7d20\u6216\u5220\u9664\u67d0\u4e2a\u5143\u7d20\uff0c\u8fd9\u4e9b\u90fd\u662f\u5143\u7ec4\u6240\u65e0\u6cd5\u505a\u5230\u7684\u3002<\/p>\n<p><strong>\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b\u9700\u8981\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\uff1f<\/strong><br \/>\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u7684\u60c5\u5883\u901a\u5e38\u53d1\u751f\u5728\u4f60\u9700\u8981\u4fee\u6539\u6570\u636e\u65f6\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u4ece\u67d0\u4e2a\u51fd\u6570\u8fd4\u56de\u4e86\u4e00\u4e2a\u5143\u7ec4\uff0c\u4f46\u60f3\u8981\u5bf9\u5176\u4e2d\u7684\u67d0\u4e9b\u503c\u8fdb\u884c\u66f4\u65b0\u6216\u91cd\u65b0\u6392\u5e8f\uff0c\u90a3\u4e48\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\u4f1a\u66f4\u52a0\u65b9\u4fbf\u3002\u4f7f\u7528\u5217\u8868\uff0c\u4f60\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u5904\u7406\u6570\u636e\uff0c\u4f8b\u5982\u4f7f\u7528<code>append()<\/code>\u65b9\u6cd5\u6dfb\u52a0\u65b0\u5143\u7d20\u6216\u4f7f\u7528<code>remove()<\/code>\u65b9\u6cd5\u5220\u9664\u6307\u5b9a\u5143\u7d20\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5c06\u5143\u7ec4\u8f6c\u6362\u4e3a\u5217\u8868\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570list()\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u4ee5\u53ca\u4f7f\u7528\u5faa\u73af\u7b49 [&hellip;]","protected":false},"author":3,"featured_media":1087854,"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\/1087845"}],"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=1087845"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087845\/revisions"}],"predecessor-version":[{"id":1087858,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1087845\/revisions\/1087858"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1087854"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1087845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1087845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1087845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}