{"id":1114005,"date":"2025-01-08T17:53:11","date_gmt":"2025-01-08T09:53:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1114005.html"},"modified":"2025-01-08T17:53:14","modified_gmt":"2025-01-08T09:53:14","slug":"python%e7%9a%84%e5%87%bd%e6%95%b0%e4%b8%ad%e5%a6%82%e4%bd%95%e8%bf%94%e5%9b%9e%e6%95%b0%e7%bb%84%e7%9a%84%e9%95%bf%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1114005.html","title":{"rendered":"python\u7684\u51fd\u6570\u4e2d\u5982\u4f55\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075349\/4bdab490-ed87-455d-9e83-c34c84df06c5.webp\" alt=\"python\u7684\u51fd\u6570\u4e2d\u5982\u4f55\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\" \/><\/p>\n<p><p> <strong>\u5728Python\u51fd\u6570\u4e2d\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>len()<\/code>\u3002<\/strong> \u901a\u8fc7\u8c03\u7528<code>len()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5feb\u901f\u83b7\u53d6\u6570\u7ec4\uff08\u5217\u8868\u3001\u5143\u7ec4\u7b49\u6570\u636e\u7ed3\u6784\uff09\u7684\u957f\u5ea6\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u51fd\u6570\u7684\u8fd4\u56de\u503c\u3002<strong>\u4f8b\u5982\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_array_length(arr):<\/p>\n<p>    return len(arr)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u51fd\u6570\u63a5\u6536\u4e00\u4e2a\u6570\u7ec4\uff08\u5217\u8868\uff09\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u6570\u7ec4\u7684\u957f\u5ea6\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u4ee5\u53ca\u5176\u4ed6\u4e0e\u6570\u7ec4\u957f\u5ea6\u76f8\u5173\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001LEN()\u51fd\u6570\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p><code>len()<\/code>\u51fd\u6570\u662fPython\u4e2d\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u7528\u4e8e\u8fd4\u56de\u5bf9\u8c61\uff08\u5982\u5217\u8868\u3001\u5143\u7ec4\u3001\u5b57\u7b26\u4e32\u7b49\uff09\u7684\u957f\u5ea6\u3002\u5176\u8bed\u6cd5\u7b80\u5355\uff0c\u4f7f\u7528\u65b9\u4fbf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b1\uff1a\u5217\u8868<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>print(len(my_list))  # \u8f93\u51fa\uff1a5<\/p>\n<h2><strong>\u793a\u4f8b2\uff1a\u5143\u7ec4<\/strong><\/h2>\n<p>my_tuple = (1, 2, 3)<\/p>\n<p>print(len(my_tuple))  # \u8f93\u51fa\uff1a3<\/p>\n<h2><strong>\u793a\u4f8b3\uff1a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>my_string = &quot;Hello, World!&quot;<\/p>\n<p>print(len(my_string))  # \u8f93\u51fa\uff1a13<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u5c06<code>len()<\/code>\u51fd\u6570\u5d4c\u5165\u5230\u81ea\u5b9a\u4e49\u51fd\u6570\u4e2d\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u65f6\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5728\u51fd\u6570\u4e2d\u4f7f\u7528LEN()<\/h3>\n<\/p>\n<p><p>\u5c06<code>len()<\/code>\u51fd\u6570\u5d4c\u5165\u5230\u81ea\u5b9a\u4e49\u51fd\u6570\u4e2d\u975e\u5e38\u7b80\u5355\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_array_length(arr):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6<\/p>\n<p>    \u53c2\u6570:<\/p>\n<p>    arr (list\/tuple): \u8f93\u5165\u7684\u6570\u7ec4\uff08\u5217\u8868\u6216\u5143\u7ec4\uff09<\/p>\n<p>    \u8fd4\u56de:<\/p>\n<p>    int: \u6570\u7ec4\u7684\u957f\u5ea6<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    return len(arr)<\/p>\n<h2><strong>\u6d4b\u8bd5\u51fd\u6570<\/strong><\/h2>\n<p>my_list = [10, 20, 30, 40]<\/p>\n<p>print(get_array_length(my_list))  # \u8f93\u51fa\uff1a4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u7ec4<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684\u6570\u7ec4\u53ef\u4ee5\u662f\u5217\u8868\u3001\u5143\u7ec4\u3001\u96c6\u5408\u7b49\u3002\u867d\u7136<code>len()<\/code>\u51fd\u6570\u53ef\u4ee5\u5904\u7406\u8fd9\u4e9b\u7c7b\u578b\uff0c\u4f46\u5728\u7f16\u5199\u51fd\u6570\u65f6\uff0c\u6700\u597d\u786e\u4fdd\u8f93\u5165\u7c7b\u578b\u662f\u9884\u671f\u7684\u7c7b\u578b\u3002\u53ef\u4ee5\u4f7f\u7528<code>isinstance()<\/code>\u51fd\u6570\u6765\u68c0\u67e5\u8f93\u5165\u7c7b\u578b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_array_length(arr):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\uff0c\u652f\u6301\u5217\u8868\u548c\u5143\u7ec4<\/p>\n<p>    \u53c2\u6570:<\/p>\n<p>    arr (list\/tuple): \u8f93\u5165\u7684\u6570\u7ec4\uff08\u5217\u8868\u6216\u5143\u7ec4\uff09<\/p>\n<p>    \u8fd4\u56de:<\/p>\n<p>    int: \u6570\u7ec4\u7684\u957f\u5ea6<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    if isinstance(arr, (list, tuple)):<\/p>\n<p>        return len(arr)<\/p>\n<p>    else:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se TypeError(&quot;\u8f93\u5165\u5fc5\u987b\u662f\u5217\u8868\u6216\u5143\u7ec4&quot;)<\/p>\n<h2><strong>\u6d4b\u8bd5\u51fd\u6570<\/strong><\/h2>\n<p>my_list = [10, 20, 30, 40]<\/p>\n<p>print(get_array_length(my_list))  # \u8f93\u51fa\uff1a4<\/p>\n<p>my_tuple = (1, 2, 3)<\/p>\n<p>print(get_array_length(my_tuple))  # \u8f93\u51fa\uff1a3<\/p>\n<h2><strong>\u9519\u8bef\u793a\u4f8b<\/strong><\/h2>\n<p>my_set = {1, 2, 3}<\/p>\n<p>print(get_array_length(my_set))  # \u629b\u51faTypeError<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u5d4c\u5957\u6570\u7ec4<\/h3>\n<\/p>\n<p><p>\u5f53\u6570\u7ec4\u4e2d\u5305\u542b\u5d4c\u5957\u6570\u7ec4\u65f6\uff0c\u53ef\u4ee5\u7f16\u5199\u9012\u5f52\u51fd\u6570\u6765\u8ba1\u7b97\u603b\u957f\u5ea6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_nested_array_length(arr):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u8fd4\u56de\u5d4c\u5957\u6570\u7ec4\u7684\u603b\u957f\u5ea6<\/p>\n<p>    \u53c2\u6570:<\/p>\n<p>    arr (list): \u8f93\u5165\u7684\u5d4c\u5957\u6570\u7ec4<\/p>\n<p>    \u8fd4\u56de:<\/p>\n<p>    int: \u6570\u7ec4\u7684\u603b\u957f\u5ea6<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    if not isinstance(arr, list):<\/p>\n<p>        raise TypeError(&quot;\u8f93\u5165\u5fc5\u987b\u662f\u5217\u8868&quot;)<\/p>\n<p>    total_length = 0<\/p>\n<p>    for item in arr:<\/p>\n<p>        if isinstance(item, list):<\/p>\n<p>            total_length += get_nested_array_length(item)<\/p>\n<p>        else:<\/p>\n<p>            total_length += 1<\/p>\n<p>    return total_length<\/p>\n<h2><strong>\u6d4b\u8bd5\u51fd\u6570<\/strong><\/h2>\n<p>nested_list = [1, [2, 3], [4, [5, 6]]]<\/p>\n<p>print(get_nested_array_length(nested_list))  # \u8f93\u51fa\uff1a6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5176\u4ed6\u76f8\u5173\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u83b7\u53d6\u6570\u7ec4\u957f\u5ea6\uff0c\u8fd8\u6709\u5176\u4ed6\u4e0e\u6570\u7ec4\u64cd\u4f5c\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u5982\uff1a<\/p>\n<\/p>\n<p><p><strong>1. \u83b7\u53d6\u6570\u7ec4\u5143\u7d20\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_array_element(arr, index):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u8fd4\u56de\u6570\u7ec4\u7684\u6307\u5b9a\u7d22\u5f15\u5904\u7684\u5143\u7d20<\/p>\n<p>    \u53c2\u6570:<\/p>\n<p>    arr (list\/tuple): \u8f93\u5165\u7684\u6570\u7ec4<\/p>\n<p>    index (int): \u7d22\u5f15<\/p>\n<p>    \u8fd4\u56de:<\/p>\n<p>    element: \u6570\u7ec4\u7684\u5143\u7d20<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    if not isinstance(arr, (list, tuple)):<\/p>\n<p>        raise TypeError(&quot;\u8f93\u5165\u5fc5\u987b\u662f\u5217\u8868\u6216\u5143\u7ec4&quot;)<\/p>\n<p>    if not isinstance(index, int):<\/p>\n<p>        raise TypeError(&quot;\u7d22\u5f15\u5fc5\u987b\u662f\u6574\u6570&quot;)<\/p>\n<p>    return arr[index]<\/p>\n<h2><strong>\u6d4b\u8bd5\u51fd\u6570<\/strong><\/h2>\n<p>my_list = [10, 20, 30, 40]<\/p>\n<p>print(get_array_element(my_list, 2))  # \u8f93\u51fa\uff1a30<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>2. \u4fee\u6539\u6570\u7ec4\u5143\u7d20\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def set_array_element(arr, index, value):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u4fee\u6539\u6570\u7ec4\u7684\u6307\u5b9a\u7d22\u5f15\u5904\u7684\u5143\u7d20<\/p>\n<p>    \u53c2\u6570:<\/p>\n<p>    arr (list): \u8f93\u5165\u7684\u6570\u7ec4<\/p>\n<p>    index (int): \u7d22\u5f15<\/p>\n<p>    value: \u65b0\u7684\u503c<\/p>\n<p>    \u8fd4\u56de:<\/p>\n<p>    None<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    if not isinstance(arr, list):<\/p>\n<p>        raise TypeError(&quot;\u8f93\u5165\u5fc5\u987b\u662f\u5217\u8868&quot;)<\/p>\n<p>    if not isinstance(index, int):<\/p>\n<p>        raise TypeError(&quot;\u7d22\u5f15\u5fc5\u987b\u662f\u6574\u6570&quot;)<\/p>\n<p>    arr[index] = value<\/p>\n<h2><strong>\u6d4b\u8bd5\u51fd\u6570<\/strong><\/h2>\n<p>my_list = [10, 20, 30, 40]<\/p>\n<p>set_array_element(my_list, 2, 35)<\/p>\n<p>print(my_list)  # \u8f93\u51fa\uff1a[10, 20, 35, 40]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>3. \u904d\u5386\u6570\u7ec4\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_array_elements(arr):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u6253\u5370\u6570\u7ec4\u7684\u6240\u6709\u5143\u7d20<\/p>\n<p>    \u53c2\u6570:<\/p>\n<p>    arr (list\/tuple): \u8f93\u5165\u7684\u6570\u7ec4<\/p>\n<p>    \u8fd4\u56de:<\/p>\n<p>    None<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    if not isinstance(arr, (list, tuple)):<\/p>\n<p>        raise TypeError(&quot;\u8f93\u5165\u5fc5\u987b\u662f\u5217\u8868\u6216\u5143\u7ec4&quot;)<\/p>\n<p>    for element in arr:<\/p>\n<p>        print(element)<\/p>\n<h2><strong>\u6d4b\u8bd5\u51fd\u6570<\/strong><\/h2>\n<p>my_list = [10, 20, 30, 40]<\/p>\n<p>print_array_elements(my_list)<\/p>\n<h2><strong>\u8f93\u51fa\uff1a<\/strong><\/h2>\n<h2><strong>10<\/strong><\/h2>\n<h2><strong>20<\/strong><\/h2>\n<h2><strong>30<\/strong><\/h2>\n<h2><strong>40<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c<strong>\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u6570\u7ec4\u7684\u957f\u5ea6<\/strong>\uff0c\u5e76\u5c06\u5176\u5d4c\u5165\u5230\u81ea\u5b9a\u4e49\u51fd\u6570\u4e2d\u4ee5\u6ee1\u8db3\u5177\u4f53\u9700\u6c42\u3002\u901a\u8fc7\u5bf9\u8f93\u5165\u7c7b\u578b\u8fdb\u884c\u9a8c\u8bc1\uff0c\u53ef\u4ee5\u786e\u4fdd\u51fd\u6570\u7684\u5065\u58ee\u6027\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u5904\u7406\u5d4c\u5957\u6570\u7ec4\u3001\u83b7\u53d6\u548c\u4fee\u6539\u6570\u7ec4\u5143\u7d20\u4ee5\u53ca\u904d\u5386\u6570\u7ec4\uff0c\u8fd9\u4e9b\u64cd\u4f5c\u4f7f\u5f97\u6570\u7ec4\u5904\u7406\u66f4\u52a0\u7075\u6d3b\u548c\u65b9\u4fbf\u3002\u638c\u63e1\u8fd9\u4e9b\u57fa\u672c\u64cd\u4f5c\u662f\u6df1\u5165\u5b66\u4e60Python\u6570\u636e\u5904\u7406\u7684\u57fa\u7840\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\u5982\u4f55\u83b7\u53d6\u6570\u7ec4\u7684\u957f\u5ea6\uff1f<\/strong><br \/>\u8981\u83b7\u53d6\u6570\u7ec4\u7684\u957f\u5ea6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>len()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u6570\u7ec4\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u6570\u91cf\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u6570\u7ec4<code>arr = [1, 2, 3, 4]<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7<code>len(arr)<\/code>\u6765\u83b7\u5f97\u5176\u957f\u5ea6\uff0c\u7ed3\u679c\u662f4\u3002<\/p>\n<p><strong>Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u6570\u636e\u7ed3\u6784\u6765\u5b58\u50a8\u6570\u7ec4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u6570\u7ec4\u6570\u636e\u7ed3\u6784\u662f\u5217\u8868\uff08list\uff09\u3002\u6b64\u5916\uff0cNumPy\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u7ec4\u5bf9\u8c61\uff0c\u79f0\u4e3andarray\uff0c\u9002\u7528\u4e8e\u6570\u503c\u8ba1\u7b97\u548c\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\u6765\u5b58\u50a8\u4f60\u7684\u6570\u7ec4\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u51fd\u6570\u4e2d\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\u5e76\u8fdb\u884c\u5176\u4ed6\u64cd\u4f5c\uff1f<\/strong><br \/>\u5728Python\u51fd\u6570\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\uff0c\u540c\u65f6\u8fd8\u53ef\u4ee5\u5728\u51fd\u6570\u4e2d\u6267\u884c\u5176\u4ed6\u64cd\u4f5c\uff0c\u4f8b\u5982\u5bf9\u6570\u7ec4\u8fdb\u884c\u6c42\u548c\u3001\u67e5\u627e\u6700\u5927\u503c\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">def array_operations(arr):\n    length = len(arr)\n    total = sum(arr)\n    return length, total\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u51fd\u6570\u5c06\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\u548c\u5143\u7d20\u7684\u603b\u548c\u3002\u4f7f\u7528\u65f6\uff0c\u53ea\u9700\u8c03\u7528<code>array_operations([1, 2, 3])<\/code>\u5373\u53ef\u83b7\u53d6\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u51fd\u6570\u4e2d\u8fd4\u56de\u6570\u7ec4\u7684\u957f\u5ea6\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5185\u7f6e\u51fd\u6570len()\u3002 \u901a\u8fc7\u8c03\u7528len()\u51fd\u6570\uff0c\u53ef\u4ee5\u5feb\u901f\u83b7\u53d6\u6570\u7ec4\uff08 [&hellip;]","protected":false},"author":3,"featured_media":1114011,"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\/1114005"}],"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=1114005"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1114005\/revisions"}],"predecessor-version":[{"id":1114014,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1114005\/revisions\/1114014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1114011"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1114005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1114005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1114005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}