{"id":1038107,"date":"2024-12-31T12:20:57","date_gmt":"2024-12-31T04:20:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1038107.html"},"modified":"2024-12-31T12:20:59","modified_gmt":"2024-12-31T04:20:59","slug":"python%e4%b8%adlist%e4%b8%ad%e7%9a%84%e6%95%b0%e5%a6%82%e4%bd%95%e7%9b%b8%e4%b9%98","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1038107.html","title":{"rendered":"python\u4e2dlist\u4e2d\u7684\u6570\u5982\u4f55\u76f8\u4e58"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/24cd06b2-65fd-4241-b374-4a7d8cc06b4a.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2dlist\u4e2d\u7684\u6570\u5982\u4f55\u76f8\u4e58\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5217\u8868\u5e76\u5c06\u5143\u7d20\u9010\u4e2a\u76f8\u4e58\u6765\u5b9e\u73b0\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef<\/strong>\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u3001reduce\u51fd\u6570\u6216numpy\u5e93\u6765\u5b9e\u73b0\u8fd9\u4e00\u64cd\u4f5c\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5faa\u73af\u5b9e\u73b0\u5217\u8868\u5143\u7d20\u7684\u4e58\u79ef<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528for\u5faa\u73af\u662f\u6700\u57fa\u7840\u3001\u6700\u76f4\u89c2\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u904d\u5386\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5b83\u4eec\u9010\u4e2a\u76f8\u4e58\uff0c\u6700\u7ec8\u5f97\u5230\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def multiply_list_elements(lst):<\/p>\n<p>    result = 1<\/p>\n<p>    for num in lst:<\/p>\n<p>        result *= num<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [2, 3, 4, 5]<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570<code>multiply_list_elements<\/code>\uff0c\u8fd9\u4e2a\u51fd\u6570\u63a5\u6536\u4e00\u4e2a\u5217\u8868\u4f5c\u4e3a\u53c2\u6570\u3002\u6211\u4eec\u521d\u59cb\u5316\u4e00\u4e2a\u53d8\u91cf<code>result<\/code>\u4e3a1\uff0c\u7136\u540e\u4f7f\u7528for\u5faa\u73af\u904d\u5386\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5b83\u4eec\u9010\u4e2a\u76f8\u4e58\uff0c\u6700\u7ec8\u8fd4\u56de\u4e58\u79ef\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528reduce\u51fd\u6570\u5b9e\u73b0\u5217\u8868\u5143\u7d20\u7684\u4e58\u79ef<\/h3>\n<\/p>\n<p><p>Python\u7684functools\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2areduce\u51fd\u6570\uff0c\u53ef\u4ee5\u66f4\u7b80\u6d01\u5730\u5b9e\u73b0\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002reduce\u51fd\u6570\u4f1a\u5bf9\u5217\u8868\u4e2d\u7684\u5143\u7d20\u8fdb\u884c\u7d2f\u79ef\u8ba1\u7b97\uff0c\u7ed3\u5408lambda\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e58\u79ef\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from functools import reduce<\/p>\n<p>def multiply_list_elements(lst):<\/p>\n<p>    return reduce(lambda x, y: x * y, lst)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [2, 3, 4, 5]<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>reduce<\/code>\u51fd\u6570\u63a5\u6536\u4e00\u4e2alambda\u8868\u8fbe\u5f0f\u548c\u4e00\u4e2a\u5217\u8868\u4f5c\u4e3a\u53c2\u6570\u3002lambda\u8868\u8fbe\u5f0f\u5b9a\u4e49\u4e86\u4e24\u4e2a\u53c2\u6570<code>x<\/code>\u548c<code>y<\/code>\uff0c\u8868\u793a\u5217\u8868\u4e2d\u7684\u4e24\u4e2a\u5143\u7d20\uff0c<code>x * y<\/code>\u8868\u793a\u5c06\u8fd9\u4e24\u4e2a\u5143\u7d20\u76f8\u4e58\u3002reduce\u51fd\u6570\u4f1a\u4f9d\u6b21\u7d2f\u79ef\u8ba1\u7b97\uff0c\u6700\u7ec8\u8fd4\u56de\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528numpy\u5e93\u5b9e\u73b0\u5217\u8868\u5143\u7d20\u7684\u4e58\u79ef<\/h3>\n<\/p>\n<p><p>numpy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u4fbf\u6377\u7684\u51fd\u6570\u6765\u5904\u7406\u6570\u7ec4\u548c\u77e9\u9635\u3002\u4f7f\u7528numpy\u5e93\u7684prod\u51fd\u6570\uff0c\u53ef\u4ee5\u5feb\u901f\u8ba1\u7b97\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def multiply_list_elements(lst):<\/p>\n<p>    return np.prod(lst)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [2, 3, 4, 5]<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165numpy\u5e93\uff0c\u7136\u540e\u4f7f\u7528<code>np.prod<\/code>\u51fd\u6570\u8ba1\u7b97\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002<code>np.prod<\/code>\u51fd\u6570\u4f1a\u8fd4\u56de\u6570\u7ec4\u5143\u7d20\u7684\u4e58\u79ef\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u9012\u5f52\u5b9e\u73b0\u5217\u8868\u5143\u7d20\u7684\u4e58\u79ef<\/h3>\n<\/p>\n<p><p>\u9012\u5f52\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u7f16\u7a0b\u6280\u672f\uff0c\u53ef\u4ee5\u7528\u6765\u89e3\u51b3\u8bb8\u591a\u95ee\u9898\u3002\u901a\u8fc7\u9012\u5f52\u51fd\u6570\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def multiply_list_elements(lst):<\/p>\n<p>    if len(lst) == 0:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return lst[0] * multiply_list_elements(lst[1:])<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [2, 3, 4, 5]<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u9012\u5f52\u51fd\u6570<code>multiply_list_elements<\/code>\u3002\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u8fd4\u56de1\uff1b\u5426\u5219\uff0c\u5c06\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u4e0e\u5269\u4f59\u5143\u7d20\u7684\u4e58\u79ef\u76f8\u4e58\uff0c\u6700\u7ec8\u5f97\u5230\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u7279\u6b8a\u60c5\u51b5<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u8003\u8651\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u6bd4\u5982\u5217\u8868\u4e3a\u7a7a\u3001\u5217\u8868\u4e2d\u5305\u542b\u96f6\u6216\u8d1f\u6570\u7b49\u3002\u4e0b\u9762\u5206\u522b\u8ba8\u8bba\u8fd9\u4e9b\u60c5\u51b5\u7684\u5904\u7406\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5217\u8868\u4e3a\u7a7a\u7684\u60c5\u51b5<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u4e58\u79ef\u5e94\u8be5\u4e3a1\uff0c\u56e0\u4e3a\u4efb\u4f55\u6570\u4e58\u4ee51\u90fd\u7b49\u4e8e\u5b83\u672c\u8eab\u3002\u6211\u4eec\u53ef\u4ee5\u5728\u51fd\u6570\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5224\u65ad\u6761\u4ef6\u6765\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def multiply_list_elements(lst):<\/p>\n<p>    if not lst:<\/p>\n<p>        return 1<\/p>\n<p>    result = 1<\/p>\n<p>    for num in lst:<\/p>\n<p>        result *= num<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = []<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5217\u8868\u4e2d\u5305\u542b\u96f6\u7684\u60c5\u51b5<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5217\u8868\u4e2d\u5305\u542b\u96f6\uff0c\u4e58\u79ef\u5e94\u8be5\u4e3a0\uff0c\u56e0\u4e3a\u4efb\u4f55\u6570\u4e58\u4ee5\u96f6\u90fd\u7b49\u4e8e\u96f6\u3002\u5728\u8ba1\u7b97\u4e58\u79ef\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5faa\u73af\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5224\u65ad\u6761\u4ef6\uff0c\u5982\u679c\u9047\u5230\u96f6\uff0c\u76f4\u63a5\u8fd4\u56de0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def multiply_list_elements(lst):<\/p>\n<p>    if not lst:<\/p>\n<p>        return 1<\/p>\n<p>    result = 1<\/p>\n<p>    for num in lst:<\/p>\n<p>        if num == 0:<\/p>\n<p>            return 0<\/p>\n<p>        result *= num<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [2, 3, 0, 5]<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u5217\u8868\u4e2d\u5305\u542b\u8d1f\u6570\u7684\u60c5\u51b5<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5217\u8868\u4e2d\u5305\u542b\u8d1f\u6570\uff0c\u4e58\u79ef\u7684\u7ed3\u679c\u53ef\u80fd\u4e3a\u8d1f\u6570\u6216\u6b63\u6570\uff0c\u8fd9\u53d6\u51b3\u4e8e\u8d1f\u6570\u7684\u4e2a\u6570\u3002\u6211\u4eec\u4e0d\u9700\u8981\u5bf9\u8d1f\u6570\u8fdb\u884c\u7279\u6b8a\u5904\u7406\uff0c\u56e0\u4e3a\u4e58\u6cd5\u8fd0\u7b97\u672c\u8eab\u5df2\u7ecf\u80fd\u6b63\u786e\u5904\u7406\u8d1f\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def multiply_list_elements(lst):<\/p>\n<p>    if not lst:<\/p>\n<p>        return 1<\/p>\n<p>    result = 1<\/p>\n<p>    for num in lst:<\/p>\n<p>        result *= num<\/p>\n<p>    return result<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>numbers = [2, -3, 4, -5]<\/p>\n<p>product = multiply_list_elements(numbers)<\/p>\n<p>print(&quot;\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u662f\uff1a&quot;, product)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0Python\u4e2d\u5217\u8868\u5143\u7d20\u7684\u4e58\u79ef\uff0c\u5305\u62ec\u4f7f\u7528\u5faa\u73af\u3001reduce\u51fd\u6570\u3001numpy\u5e93\u548c\u9012\u5f52\u7b49\u65b9\u6cd5\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u5217\u8868\u5143\u7d20\u7684\u4e58\u79ef\u3002\u540c\u65f6\uff0c\u6211\u4eec\u8fd8\u8ba8\u8bba\u4e86\u5904\u7406\u7279\u6b8a\u60c5\u51b5\u7684\u65b9\u6cd5\uff0c\u4ee5\u786e\u4fdd\u51fd\u6570\u7684\u5065\u58ee\u6027\u548c\u53ef\u9760\u6027\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u5728Python\u7f16\u7a0b\u4e2d\u5904\u7406\u5217\u8868\u5143\u7d20\u4e58\u79ef\u95ee\u9898\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5c06\u5217\u8868\u4e2d\u7684\u6240\u6709\u6570\u76f8\u4e58\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>functools.reduce<\/code>\u51fd\u6570\u7ed3\u5408<code>operator.mul<\/code>\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002\u9996\u5148\uff0c\u5bfc\u5165\u6240\u9700\u7684\u6a21\u5757\uff0c\u7136\u540e\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u76f8\u4e58\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">from functools import reduce\nimport operator\n\nnumbers = [1, 2, 3, 4]\nresult = reduce(operator.mul, numbers, 1)\nprint(result)  # \u8f93\u51fa 24\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5904\u7406\u4efb\u610f\u957f\u5ea6\u7684\u5217\u8868\uff0c\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u6d01\u4e14\u9ad8\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u6765\u5b9e\u73b0\u5217\u8868\u4e2d\u6570\u7684\u76f8\u4e58\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\u3002\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5b83\u4eec\u76f8\u4e58\u4e5f\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4]\nresult = 1\nfor number in numbers:\n    result *= number\nprint(result)  # \u8f93\u51fa 24\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u76f4\u89c2\u6613\u61c2\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u5305\u542b\u96f6\u7684\u5217\u8868\uff1f<\/strong><br \/>\u5982\u679c\u5217\u8868\u4e2d\u5305\u542b\u96f6\uff0c\u4e58\u79ef\u7ed3\u679c\u5c06\u662f\u96f6\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u5728\u8ba1\u7b97\u524d\u68c0\u67e5\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u6216\u5305\u542b\u96f6\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 0, 4]\nif 0 in numbers:\n    result = 0\nelse:\n    result = reduce(operator.mul, numbers, 1)\nprint(result)  # \u8f93\u51fa 0\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u786e\u4fdd\u5728\u9047\u5230\u96f6\u65f6\uff0c\u7ed3\u679c\u6b63\u786e\u53cd\u6620\u4e3a\u96f6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5217\u8868\u5e76\u5c06\u5143\u7d20\u9010\u4e2a\u76f8\u4e58\u6765\u5b9e\u73b0\u5217\u8868\u4e2d\u6240\u6709\u6570\u7684\u4e58\u79ef\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u3001reduce\u51fd\u6570\u6216 [&hellip;]","protected":false},"author":3,"featured_media":1038118,"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\/1038107"}],"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=1038107"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1038107\/revisions"}],"predecessor-version":[{"id":1038122,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1038107\/revisions\/1038122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1038118"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1038107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1038107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1038107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}