{"id":1054755,"date":"2024-12-31T14:45:01","date_gmt":"2024-12-31T06:45:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1054755.html"},"modified":"2024-12-31T14:45:03","modified_gmt":"2024-12-31T06:45:03","slug":"python%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97%e4%ba%8c%e9%a1%b9%e5%bc%8f%e5%b1%95%e5%bc%80","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1054755.html","title":{"rendered":"Python\u5982\u4f55\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/5f7c7e94-206a-4bde-9bcd-152ad4f85e7c.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"Python\u5982\u4f55\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\" \/><\/p>\n<p><p> <strong>Python\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u6570\u5b66\u516c\u5f0f\u3001\u5229\u7528SymPy\u5e93\u3001\u521b\u5efa\u81ea\u5b9a\u4e49\u51fd\u6570\u3002<\/strong> \u5176\u4e2d\uff0c\u5229\u7528SymPy\u5e93\u662f\u6700\u4e3a\u7b80\u4fbf\u548c\u9ad8\u6548\u7684\u65b9\u5f0f\u3002SymPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684Python\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u7b26\u53f7\u6570\u5b66\u8ba1\u7b97\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528SymPy\u5e93\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00\uff0c\u5e76\u63a2\u8ba8\u5176\u80cc\u540e\u7684\u6570\u5b66\u539f\u7406\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u6570\u5b66\u80cc\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u6df1\u5165Python\u5b9e\u73b0\u4e4b\u524d\uff0c\u4e86\u89e3\u4e8c\u9879\u5f0f\u5b9a\u7406\u7684\u6570\u5b66\u80cc\u666f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4e8c\u9879\u5f0f\u5b9a\u7406\u544a\u8bc9\u6211\u4eec\uff0c\u4efb\u610f\u4e24\u4e2a\u6570\u7684\u548c\u7684n\u6b21\u5e42\u53ef\u4ee5\u5c55\u5f00\u6210\u4e00\u4e2a\u591a\u9879\u5f0f\u5f62\u5f0f\uff1a<\/p>\n<\/p>\n<p><p>[ (a + b)^n = \\sum_{k=0}^{n} \\binom{n}{k} a^{n-k} b^k ]<\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c(\\binom{n}{k}) \u662f\u4e8c\u9879\u5f0f\u7cfb\u6570\uff0c\u7b49\u4e8e ( \\frac{n!}{k!(n-k)!} )\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528SymPy\u5e93\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00<\/h3>\n<\/p>\n<p><p>SymPy\u5e93\u662f\u4e00\u4e2a\u5f3a\u5927\u7684Python\u5e93\uff0c\u7528\u4e8e\u7b26\u53f7\u6570\u5b66\u8ba1\u7b97\u3002\u5b83\u63d0\u4f9b\u4e86\u5e7f\u6cdb\u7684\u529f\u80fd\uff0c\u5305\u62ec\u4e8c\u9879\u5f0f\u5c55\u5f00\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528SymPy\u5e93\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5SymPy\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fddSymPy\u5e93\u5df2\u7ecf\u5b89\u88c5\u3002\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install sympy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5bfc\u5165SymPy\u5e76\u5b9a\u4e49\u7b26\u53f7<\/h4>\n<\/p>\n<p><p>\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165SymPy\u5e93\uff0c\u5e76\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7<\/strong><\/h2>\n<p>a, b = sp.symbols(&#39;a b&#39;)<\/p>\n<p>n = sp.Symbol(&#39;n&#39;, integer=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u4f7f\u7528expand\u51fd\u6570\u8fdb\u884c\u5c55\u5f00<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528SymPy\u7684expand\u51fd\u6570\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e8c\u9879\u5f0f<\/p>\n<p>binomial_expr = (a + b)n<\/p>\n<h2><strong>\u5c55\u5f00\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>expanded_expr = sp.expand(binomial_expr)<\/p>\n<p>print(expanded_expr)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528SymPy\u5e93\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7<\/strong><\/h2>\n<p>a, b = sp.symbols(&#39;a b&#39;)<\/p>\n<p>n = sp.Symbol(&#39;n&#39;, integer=True)<\/p>\n<h2><strong>\u5b9a\u4e49\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>binomial_expr = (a + b)n<\/p>\n<h2><strong>\u5c55\u5f00\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>expanded_expr = sp.expand(binomial_expr)<\/p>\n<p>print(f&quot;\u4e8c\u9879\u5f0f\u5c55\u5f00\u7ed3\u679c: {expanded_expr}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u624b\u52a8\u5b9e\u73b0\u4e8c\u9879\u5f0f\u5c55\u5f00<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528SymPy\u5e93\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u624b\u52a8\u5b9e\u73b0\u4e8c\u9879\u5f0f\u5c55\u5f00\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u8ba1\u7b97\u9636\u4e58\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97\u9636\u4e58\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    if n == 0:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return n * factorial(n-1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8ba1\u7b97\u4e8c\u9879\u5f0f\u7cfb\u6570<\/h4>\n<\/p>\n<p><p>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97\u4e8c\u9879\u5f0f\u7cfb\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def binomial_coefficient(n, k):<\/p>\n<p>    return factorial(n) \/\/ (factorial(k) * factorial(n - k))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5b9e\u73b0\u4e8c\u9879\u5f0f\u5c55\u5f00<\/h4>\n<\/p>\n<p><p>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u7528\u4e8e\u5b9e\u73b0\u4e8c\u9879\u5f0f\u5c55\u5f00\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def binomial_expansion(a, b, n):<\/p>\n<p>    terms = []<\/p>\n<p>    for k in range(n + 1):<\/p>\n<p>        coeff = binomial_coefficient(n, k)<\/p>\n<p>        term = coeff * (a &lt;strong&gt; (n - k)) * (b &lt;\/strong&gt; k)<\/p>\n<p>        terms.append(term)<\/p>\n<p>    return terms<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u624b\u52a8\u5b9e\u73b0\u4e8c\u9879\u5f0f\u5c55\u5f00\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    if n == 0:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return n * factorial(n-1)<\/p>\n<p>def binomial_coefficient(n, k):<\/p>\n<p>    return factorial(n) \/\/ (factorial(k) * factorial(n - k))<\/p>\n<p>def binomial_expansion(a, b, n):<\/p>\n<p>    terms = []<\/p>\n<p>    for k in range(n + 1):<\/p>\n<p>        coeff = binomial_coefficient(n, k)<\/p>\n<p>        term = coeff * (a &lt;strong&gt; (n - k)) * (b &lt;\/strong&gt; k)<\/p>\n<p>        terms.append(term)<\/p>\n<p>    return terms<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>a = 2<\/p>\n<p>b = 3<\/p>\n<p>n = 4<\/p>\n<p>expanded_terms = binomial_expansion(a, b, n)<\/p>\n<p>print(f&quot;\u4e8c\u9879\u5f0f\u5c55\u5f00\u7ed3\u679c: {expanded_terms}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u548c\u5de9\u56fa\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u6982\u5ff5\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5177\u4f53\u7684\u5e94\u7528\u5b9e\u4f8b\u6765\u8fdb\u884c\u7ec3\u4e60\u3002<\/p>\n<\/p>\n<p><h4>1. \u8ba1\u7b97\u5177\u4f53\u4e8c\u9879\u5f0f\u7684\u5c55\u5f00<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u9700\u8981\u8ba1\u7b97 ((x + 1)^5) \u7684\u5c55\u5f00\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7<\/strong><\/h2>\n<p>x = sp.symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u5b9a\u4e49\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>binomial_expr = (x + 1)5<\/p>\n<h2><strong>\u5c55\u5f00\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>expanded_expr = sp.expand(binomial_expr)<\/p>\n<p>print(f&quot;(x + 1)^5 \u7684\u5c55\u5f00\u7ed3\u679c: {expanded_expr}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8ba1\u7b97\u591a\u9879\u5f0f\u7684\u7cfb\u6570<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u8ba1\u7b97\u591a\u9879\u5f0f\u7684\u5177\u4f53\u7cfb\u6570\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u9700\u8981\u8ba1\u7b97 ((2x &#8211; 3)^4) \u7684\u5c55\u5f00\u5e76\u627e\u51fax\u7684\u7cfb\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7<\/strong><\/h2>\n<p>x = sp.symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u5b9a\u4e49\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>binomial_expr = (2*x - 3)4<\/p>\n<h2><strong>\u5c55\u5f00\u4e8c\u9879\u5f0f<\/strong><\/h2>\n<p>expanded_expr = sp.expand(binomial_expr)<\/p>\n<p>print(f&quot;(2x - 3)^4 \u7684\u5c55\u5f00\u7ed3\u679c: {expanded_expr}&quot;)<\/p>\n<h2><strong>\u63d0\u53d6x\u7684\u7cfb\u6570<\/strong><\/h2>\n<p>coeff_x = expanded_expr.coeff(x)<\/p>\n<p>print(f&quot;x \u7684\u7cfb\u6570: {coeff_x}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u65b9\u6cd5\u3002<strong>\u4f7f\u7528SymPy\u5e93\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00\u662f\u6700\u4e3a\u7b80\u4fbf\u548c\u9ad8\u6548\u7684\u65b9\u5f0f<\/strong>\uff0c\u540c\u65f6\u6211\u4eec\u4e5f\u5c55\u793a\u4e86\u5982\u4f55\u624b\u52a8\u5b9e\u73b0\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u8ba1\u7b97\u548c\u5e94\u7528\u4e8c\u9879\u5f0f\u5c55\u5f00\uff0c\u4e3a\u6570\u5b66\u548c\u5de5\u7a0b\u9886\u57df\u7684\u5404\u79cd\u95ee\u9898\u63d0\u4f9b\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u8bb2\u89e3\uff0c\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1Python\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u65b9\u6cd5\uff0c\u5e76\u80fd\u591f\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u77e5\u8bc6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>1. \u5982\u4f55\u4f7f\u7528Python\u8ba1\u7b97\u4e8c\u9879\u5f0f\u7684\u7cfb\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>comb<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\u4e2d\u7684\u7cfb\u6570\u3002\u4e8c\u9879\u5f0f\u7684\u7cfb\u6570\u53ef\u4ee5\u901a\u8fc7\u516c\u5f0fC(n, k) = n! \/ (k! * (n-k)!)\u8ba1\u7b97\uff0c\u5176\u4e2dn\u662f\u5c55\u5f00\u7684\u6b21\u6570\uff0ck\u662f\u5bf9\u5e94\u7684\u9879\u6570\u3002\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import math\n\ndef binomial_coefficient(n, k):\n    return math.comb(n, k)\n\n# \u793a\u4f8b\uff1a\u8ba1\u7b97C(5, 2)\nprint(binomial_coefficient(5, 2))  # \u8f93\u51fa: 10\n<\/code><\/pre>\n<p><strong>2. Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u8fdb\u884c\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u8ba1\u7b97\uff1f<\/strong><br \/>Python\u4e2d\u6709\u591a\u4e2a\u5e93\u53ef\u4ee5\u7528\u4e8e\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\uff0c\u5982<code>SymPy<\/code>\u548c<code>NumPy<\/code>\u3002<code>SymPy<\/code>\u662f\u4e00\u4e2a\u7528\u4e8e\u7b26\u53f7\u6570\u5b66\u7684\u5e93\uff0c\u80fd\u591f\u5904\u7406\u4ee3\u6570\u8868\u8fbe\u5f0f\uff0c\u5305\u62ec\u4e8c\u9879\u5f0f\u5c55\u5f00\u3002\u4f7f\u7528<code>SymPy<\/code>\u7684<code>expand<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u5f97\u5230\u4e8c\u9879\u5f0f\u7684\u5c55\u5f00\u7ed3\u679c\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">from sympy import symbols, expand\n\nx, y = symbols(&#39;x y&#39;)\nresult = expand((x + y)**5)\nprint(result)  # \u8f93\u51fa: x&lt;strong&gt;5 + 5*x&lt;\/strong&gt;4*y + 10*x&lt;strong&gt;3*y&lt;\/strong&gt;2 + 10*x&lt;strong&gt;2*y&lt;\/strong&gt;3 + 5*x*y&lt;strong&gt;4 + y&lt;\/strong&gt;5\n<\/code><\/pre>\n<p><strong>3. \u5728Python\u4e2d\u5982\u4f55\u5b9e\u73b0\u4e8c\u9879\u5f0f\u5b9a\u7406\u7684\u8ba1\u7b97\uff1f<\/strong><br \/>\u4e8c\u9879\u5f0f\u5b9a\u7406\u8868\u660e(a + b)^n = \u03a3(C(n, k) * a^(n-k) * b^k)\uff0c\u5176\u4e2dk\u4ece0\u5230n\u3002\u4f7f\u7528Python\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u8ba1\u7b97\u6bcf\u4e00\u9879\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u5217\u8868\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b9e\u73b0\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">def binomial_theorem(a, b, n):\n    result = []\n    for k in range(n + 1):\n        coefficient = binomial_coefficient(n, k)\n        result.append(coefficient * (a&lt;strong&gt;(n-k)) * (b&lt;\/strong&gt;k))\n    return result\n\n# \u793a\u4f8b\uff1a\u8ba1\u7b97(2 + 3)^3\nprint(binomial_theorem(2, 3, 3))  # \u8f93\u51fa: [8, 36, 54, 27]\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"Python\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5c55\u5f00\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u6570\u5b66\u516c\u5f0f\u3001\u5229\u7528SymPy\u5e93\u3001\u521b\u5efa\u81ea\u5b9a\u4e49\u51fd\u6570\u3002 \u5176\u4e2d\uff0c\u5229\u7528SymPy\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":1054764,"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\/1054755"}],"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=1054755"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1054755\/revisions"}],"predecessor-version":[{"id":1054767,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1054755\/revisions\/1054767"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1054764"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1054755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1054755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1054755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}