{"id":981586,"date":"2024-12-27T07:03:51","date_gmt":"2024-12-26T23:03:51","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/981586.html"},"modified":"2024-12-27T07:03:54","modified_gmt":"2024-12-26T23:03:54","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%ae%9e%e7%8e%b0%e7%b4%af%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/981586.html","title":{"rendered":"\u5982\u4f55\u7528python\u5b9e\u73b0\u7d2f\u52a0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210448\/4938c40d-eae4-4c9e-b388-6140eca3f156.webp\" alt=\"\u5982\u4f55\u7528python\u5b9e\u73b0\u7d2f\u52a0\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5b9e\u73b0\u7d2f\u52a0\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5faa\u73af\u3001\u9012\u5f52\u3001\u5185\u7f6e\u51fd\u6570sum\u7b49\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528for\u5faa\u73af\u6765\u904d\u5386\u4e00\u4e2a\u6570\u5217\u6216\u5217\u8868\uff0c\u5e76\u5c06\u6bcf\u4e2a\u5143\u7d20\u76f8\u52a0\u3002\u9012\u5f52\u662f\u4e00\u79cd\u66f4\u5177\u6311\u6218\u6027\u7684\u65b9\u5f0f\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u66f4\u4e3a\u76f4\u89c2\u3002\u5185\u7f6e\u51fd\u6570sum\u662f\u6700\u7b80\u6d01\u7684\u5b9e\u73b0\u65b9\u5f0f\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u5217\u8868\u7684\u7d2f\u52a0\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528FOR\u5faa\u73af\u5b9e\u73b0\u7d2f\u52a0<\/p>\n<\/p>\n<p><p>\u4f7f\u7528for\u5faa\u73af\u662f\u5b9e\u73b0\u7d2f\u52a0\u6700\u57fa\u672c\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7\u904d\u5386\u4e00\u4e2a\u5217\u8868\u6216\u8303\u56f4\uff0c\u6211\u4eec\u53ef\u4ee5\u9010\u6b65\u5c06\u6bcf\u4e2a\u5143\u7d20\u52a0\u5230\u4e00\u4e2a\u7d2f\u52a0\u5668\u53d8\u91cf\u4e0a\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u57fa\u672c\u5b9e\u73b0<\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u6211\u4eec\u9700\u8981\u7d2f\u52a01\u523010\u7684\u6574\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">total = 0<\/p>\n<p>for i in range(1, 11):<\/p>\n<p>    total += i<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>range(1, 11)<\/code>\u751f\u6210\u4e86\u4ece1\u523010\u7684\u6574\u6570\u5e8f\u5217\u3002<code>total<\/code>\u662f\u7d2f\u52a0\u5668\u53d8\u91cf\uff0c\u521d\u59cb\u503c\u4e3a0\u3002\u5728\u5faa\u73af\u4e2d\uff0c<code>total<\/code>\u4e0d\u65ad\u7d2f\u52a0\u5f53\u524d\u7684<code>i<\/code>\u503c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7d2f\u52a0\u5217\u8868\u4e2d\u7684\u5143\u7d20<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u6211\u4eec\u6709\u4e00\u4e2a\u5217\u8868\uff0c\u60f3\u8981\u7d2f\u52a0\u6240\u6709\u5143\u7d20\u7684\u503c\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<\/p>\n<p>total = 0<\/p>\n<p>for number in numbers:<\/p>\n<p>    total += number<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>numbers<\/code>\u662f\u4e00\u4e2a\u5305\u542b10\u4e2a\u6574\u6570\u7684\u5217\u8868\u3002\u6211\u4eec\u4f7f\u7528for\u5faa\u73af\u904d\u5386\u6bcf\u4e2a<code>number<\/code>\u5e76\u5c06\u5176\u7d2f\u52a0\u5230<code>total<\/code>\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528WHILE\u5faa\u73af\u5b9e\u73b0\u7d2f\u52a0<\/p>\n<\/p>\n<p><p>\u9664\u4e86for\u5faa\u73af\uff0cwhile\u5faa\u73af\u4e5f\u662f\u4e00\u79cd\u5b9e\u73b0\u7d2f\u52a0\u7684\u5e38\u7528\u65b9\u6cd5\uff0c\u5c24\u5176\u662f\u5728\u5faa\u73af\u7684\u6b21\u6570\u4e0d\u786e\u5b9a\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">total = 0<\/p>\n<p>i = 1<\/p>\n<p>while i &lt;= 10:<\/p>\n<p>    total += i<\/p>\n<p>    i += 1<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>i<\/code>\u662f\u5faa\u73af\u53d8\u91cf\uff0c\u521d\u59cb\u503c\u4e3a1\u3002<code>while<\/code>\u5faa\u73af\u4f1a\u4e00\u76f4\u8fd0\u884c\uff0c\u76f4\u5230<code>i<\/code>\u5927\u4e8e10\u4e3a\u6b62\u3002\u5728\u6bcf\u6b21\u5faa\u73af\u4e2d\uff0c\u5f53\u524d\u7684<code>i<\/code>\u503c\u4f1a\u88ab\u52a0\u5230<code>total<\/code>\u4e2d\uff0c\u7136\u540e<code>i<\/code>\u81ea\u589e1\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u9012\u5f52\u5b9e\u73b0\u7d2f\u52a0<\/p>\n<\/p>\n<p><p>\u9012\u5f52\u662f\u4e00\u79cd\u901a\u8fc7\u51fd\u6570\u81ea\u8eab\u8c03\u7528\u81ea\u8eab\u6765\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6cd5\u3002\u867d\u7136\u9012\u5f52\u901a\u5e38\u4e0d\u662f\u6700\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5b83\u53ef\u4ee5\u63d0\u4f9b\u66f4\u76f4\u89c2\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u9012\u5f52\u5b9e\u73b0<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def recursive_sum(n):<\/p>\n<p>    if n == 0:<\/p>\n<p>        return 0<\/p>\n<p>    else:<\/p>\n<p>        return n + recursive_sum(n - 1)<\/p>\n<p>total = recursive_sum(10)<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>recursive_sum<\/code>\u662f\u4e00\u4e2a\u9012\u5f52\u51fd\u6570\u3002\u57fa\u4f8b\u662f\u5f53<code>n<\/code>\u7b49\u4e8e0\u65f6\uff0c\u8fd4\u56de0\u3002\u5426\u5219\uff0c\u51fd\u6570\u8fd4\u56de<code>n<\/code>\u52a0\u4e0a<code>recursive_sum(n - 1)<\/code>\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p><strong>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u9012\u5f52\u53ef\u80fd\u5bfc\u81f4\u6808\u6ea2\u51fa\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5927\u8303\u56f4\u65f6\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570SUM\u5b9e\u73b0\u7d2f\u52a0<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5185\u7f6e\u51fd\u6570<code>sum<\/code>\uff0c\u53ef\u4ee5\u5bf9\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff08\u5982\u5217\u8868\uff09\u8fdb\u884c\u7d2f\u52a0\u3002\u8fd9\u662f\u5b9e\u73b0\u7d2f\u52a0\u7684\u6700\u7b80\u6d01\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<\/p>\n<p>total = sum(numbers)<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>sum(numbers)<\/code>\u4f1a\u8fd4\u56de\u5217\u8868<code>numbers<\/code>\u4e2d\u6240\u6709\u5143\u7d20\u7684\u603b\u548c\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5229\u7528\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u5b9e\u73b0\u7d2f\u52a0<\/p>\n<\/p>\n<p><p>\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u5728\u5185\u5b58\u6548\u7387\u548c\u8ba1\u7b97\u6548\u7387\u4e4b\u95f4\u53d6\u5f97\u5e73\u8861\u3002\u5b83\u4eec\u4e0d\u4f1a\u4e00\u6b21\u6027\u751f\u6210\u6574\u4e2a\u5217\u8868\uff0c\u800c\u662f\u9010\u4e2a\u751f\u6210\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">total = sum(i for i in range(1, 11))<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>i for i in range(1, 11)<\/code>\u662f\u4e00\u4e2a\u751f\u6210\u5668\u8868\u8fbe\u5f0f\uff0c\u5b83\u4f1a\u751f\u6210\u4ece1\u523010\u7684\u6574\u6570\u3002<code>sum<\/code>\u51fd\u6570\u63a5\u6536\u8fd9\u4e2a\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u5e76\u8fd4\u56de\u603b\u548c\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528NUMPY\u5e93\u5b9e\u73b0\u7d2f\u52a0<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5904\u7406\u5927\u91cf\u6570\u636e\u6216\u9700\u8981\u9ad8\u6548\u8ba1\u7b97\u7684\u573a\u5408\uff0cNumPy\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u7ec4\u8fd0\u7b97\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5NumPy<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5NumPy\u5e93\u3002\u5982\u679c\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 numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528NumPy\u5b9e\u73b0\u7d2f\u52a0<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>numbers = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])<\/p>\n<p>total = np.sum(numbers)<\/p>\n<p>print(&quot;The sum is:&quot;, total)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>np.array<\/code>\u521b\u5efa\u4e86\u4e00\u4e2aNumPy\u6570\u7ec4\uff0c\u7136\u540e\u4f7f\u7528<code>np.sum<\/code>\u5bf9\u6570\u7ec4\u5143\u7d20\u8fdb\u884c\u7d2f\u52a0\u3002<\/p>\n<\/p>\n<p><p><strong>\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5b9e\u73b0\u7d2f\u52a0\u7684\u65b9\u6cd5\uff0c\u5305\u62ecfor\u5faa\u73af\u3001while\u5faa\u73af\u3001\u9012\u5f52\u3001\u5185\u7f6e\u51fd\u6570sum\u3001\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u548cNumPy\u5e93\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c<code>sum<\/code>\u51fd\u6570\u662f\u6700\u7b80\u5355\u548c\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u903b\u8f91\u6216\u9700\u8981\u81ea\u5b9a\u4e49\u884c\u4e3a\u7684\u60c5\u51b5\uff0c\u5faa\u73af\u548c\u9012\u5f52\u53ef\u80fd\u66f4\u4e3a\u5408\u9002\u3002\u5bf9\u4e8e\u5927\u6570\u636e\u96c6\uff0cNumPy\u63d0\u4f9b\u4e86\u4f18\u5f02\u7684\u6027\u80fd\u548c\u7075\u6d3b\u6027\u3002\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8fdb\u884c\u7d2f\u52a0\u8fd0\u7b97\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u7d2f\u52a0\u8fd0\u7b97\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u6216\u5185\u7f6e\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u904d\u5386\u4e00\u4e2a\u5217\u8868\u4e2d\u7684\u6570\u5b57\u5e76\u5c06\u5b83\u4eec\u76f8\u52a0\uff0c\u53ef\u4ee5\u91c7\u7528\u5982\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]\ntotal = 0\nfor number in numbers:\n    total += number\nprint(total)  # \u8f93\u51fa\u7ed3\u679c\u4e3a15\n<\/code><\/pre>\n<p>\u53e6\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>sum()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u66f4\u7b80\u6d01\u7684\u7d2f\u52a0\uff1a<\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]\ntotal = sum(numbers)\nprint(total)  # \u8f93\u51fa\u7ed3\u679c\u4e3a15\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u4ee5\u8fdb\u884c\u7d2f\u52a0\uff1f<\/strong><br \/>\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5c06\u8f93\u5165\u7684\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e3a\u6570\u5b57\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u4ece\u7528\u6237\u83b7\u53d6\u6570\u5b57\u5e76\u8fdb\u884c\u7d2f\u52a0\uff1a<\/p>\n<pre><code class=\"language-python\">total = 0\nwhile True:\n    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff08\u8f93\u5165&#39;q&#39;\u9000\u51fa\uff09\uff1a&quot;)\n    if user_input.lower() == &#39;q&#39;:\n        break\n    try:\n        number = float(user_input)\n        total += number\n    except ValueError:\n        print(&quot;\u8bf7\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57\u3002&quot;)\nprint(f&quot;\u603b\u548c\u662f\uff1a{total}&quot;)\n<\/code><\/pre>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u7d2f\u52a0\u65b9\u6cd5\u6216\u51fd\u6570\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u5faa\u73af\u548c<code>sum()<\/code>\u51fd\u6570\u5916\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5176\u4ed6\u65b9\u6cd5\u6765\u8fdb\u884c\u7d2f\u52a0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u4e0e<code>sum()<\/code>\u7ed3\u5408\u4f7f\u7528\uff0c\u4ece\u800c\u5728\u8ba1\u7b97\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u7b5b\u9009\uff1a<\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]\ntotal_even = sum(number for number in numbers if number % 2 == 0)\nprint(total_even)  # \u8f93\u51fa\u7ed3\u679c\u4e3a6\uff0c\u8ba1\u7b97\u5076\u6570\u7684\u603b\u548c\n<\/code><\/pre>\n<p>\u4ee5\u4e0a\u65b9\u6cd5\u4e0d\u4ec5\u80fd\u5b9e\u73b0\u7d2f\u52a0\uff0c\u8fd8\u80fd\u5728\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u6761\u4ef6\u5224\u65ad\uff0c\u7075\u6d3b\u6027\u66f4\u9ad8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5b9e\u73b0\u7d2f\u52a0\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5faa\u73af\u3001\u9012\u5f52\u3001\u5185\u7f6e\u51fd\u6570sum\u7b49\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528for\u5faa [&hellip;]","protected":false},"author":3,"featured_media":981602,"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\/981586"}],"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=981586"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981586\/revisions"}],"predecessor-version":[{"id":981603,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/981586\/revisions\/981603"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/981602"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=981586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=981586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=981586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}