{"id":1121899,"date":"2025-01-08T19:14:46","date_gmt":"2025-01-08T11:14:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1121899.html"},"modified":"2025-01-08T19:14:49","modified_gmt":"2025-01-08T11:14:49","slug":"python%e5%a6%82%e4%bd%95%e7%bc%96%e5%86%99x%e7%9a%84y%e6%ac%a1%e6%96%b9%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1121899.html","title":{"rendered":"python\u5982\u4f55\u7f16\u5199x\u7684y\u6b21\u65b9\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083953\/e765b31f-9e7d-4726-a18d-566a8943242e.webp\" alt=\"python\u5982\u4f55\u7f16\u5199x\u7684y\u6b21\u65b9\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u7f16\u5199\u8ba1\u7b97x\u7684y\u6b21\u65b9\u7684\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26<code>&lt;\/strong&gt;<\/code>\u3001\u5185\u7f6e\u51fd\u6570<code>pow()<\/code>\u548c\u5faa\u73af\u5b9e\u73b0\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c<strong>\u6027\u80fd\u9ad8\u3001\u4ee3\u7801\u7b80\u6d01\u3001\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5<\/strong>\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\uff0c\u5e76\u63a2\u8ba8\u5176\u4f18\u7f3a\u70b9\u53ca\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26<code><\/code><\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u4e14\u9ad8\u6548\u7684\u65b9\u5f0f\u6765\u8ba1\u7b97\u5e42\uff0c\u5373\u4f7f\u7528<code><\/code>\u8fd0\u7b97\u7b26\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7b80\u6d01\u6613\u61c2\uff0c\u6027\u80fd\u4f18\u8d8a\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def power_with_operator(x, y):<\/p>\n<p>    return x  y<\/p>\n<p>result = power_with_operator(2, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f18\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u4ee3\u7801\u7b80\u6d01<\/strong>\uff1a\u53ea\u9700\u4e00\u4e2a\u8fd0\u7b97\u7b26\uff0c\u4ee3\u7801\u91cf\u5c11\u3002<\/li>\n<li><strong>\u6027\u80fd\u9ad8<\/strong>\uff1a\u5185\u7f6e\u8fd0\u7b97\u7b26\u5728\u5e95\u5c42\u8fdb\u884c\u4e86\u4f18\u5316\u3002<\/li>\n<li><strong>\u6613\u8bfb\u6613\u61c2<\/strong>\uff1a\u9002\u5408\u521d\u5b66\u8005\u548c\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u7684\u8ba1\u7b97\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u7075\u6d3b\u6027\u5dee<\/strong>\uff1a\u4e0d\u9002\u7528\u4e8e\u9700\u8981\u66f4\u590d\u6742\u64cd\u4f5c\u7684\u60c5\u51b5\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>pow()<\/code><\/h3>\n<\/p>\n<p><p>Python\u7684\u5185\u7f6e\u51fd\u6570<code>pow()<\/code>\u540c\u6837\u53ef\u4ee5\u8ba1\u7b97\u5e42\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u63d0\u4f9b\u4e86\u989d\u5916\u7684\u529f\u80fd\uff0c\u6bd4\u5982\u8ba1\u7b97\u6a21\u5e42\uff08\u5373<code>pow(x, y, z)<\/code>\u8fd4\u56de<code>(x  y) % z<\/code>\uff09\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def power_with_function(x, y):<\/p>\n<p>    return pow(x, y)<\/p>\n<p>result = power_with_function(2, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f18\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u529f\u80fd\u4e30\u5bcc<\/strong>\uff1a\u53ef\u4ee5\u8ba1\u7b97\u6a21\u5e42\u3002<\/li>\n<li><strong>\u6027\u80fd\u9ad8<\/strong>\uff1a\u5185\u7f6e\u51fd\u6570\u5728\u5e95\u5c42\u8fdb\u884c\u4e86\u4f18\u5316\u3002<\/li>\n<li><strong>\u6613\u8bfb\u6613\u61c2<\/strong>\uff1a\u9002\u5408\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u7684\u8ba1\u7b97\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u7075\u6d3b\u6027\u6709\u9650<\/strong>\uff1a\u867d\u7136\u6bd4\u8fd0\u7b97\u7b26\u7075\u6d3b\uff0c\u4f46\u4ecd\u4e0d\u9002\u7528\u4e8e\u9700\u8981\u66f4\u590d\u6742\u64cd\u4f5c\u7684\u60c5\u51b5\u3002<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5faa\u73af\u5b9e\u73b0<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u5faa\u73af\u6765\u8ba1\u7b97\u5e42\u6570\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\uff0c\u9002\u7528\u4e8e\u4e00\u4e9b\u7279\u6b8a\u9700\u6c42\u7684\u573a\u666f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def power_with_loop(x, y):<\/p>\n<p>    result = 1<\/p>\n<p>    for _ in range(y):<\/p>\n<p>        result *= x<\/p>\n<p>    return result<\/p>\n<p>result = power_with_loop(2, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f18\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u7075\u6d3b\u6027\u9ad8<\/strong>\uff1a\u53ef\u4ee5\u5728\u5faa\u73af\u4e2d\u6dfb\u52a0\u66f4\u591a\u903b\u8f91\u3002<\/li>\n<li><strong>\u9002\u7528\u4e8e\u5b66\u4e60<\/strong>\uff1a\u5e2e\u52a9\u7406\u89e3\u5e42\u7684\u8ba1\u7b97\u8fc7\u7a0b\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u6027\u80fd\u8f83\u4f4e<\/strong>\uff1a\u76f8\u6bd4\u5185\u7f6e\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\uff0c\u5faa\u73af\u7684\u6027\u80fd\u8f83\u5dee\u3002<\/li>\n<li><strong>\u4ee3\u7801\u5197\u957f<\/strong>\uff1a\u9700\u8981\u66f4\u591a\u7684\u4ee3\u7801\u884c\u3002<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u9012\u5f52\u5b9e\u73b0<\/h3>\n<\/p>\n<p><p>\u9012\u5f52\u65b9\u6cd5\u4e5f\u662f\u8ba1\u7b97\u5e42\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u7279\u522b\u662f\u5728\u7406\u89e3\u9012\u5f52\u601d\u60f3\u65f6\u975e\u5e38\u6709\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def power_with_recursion(x, y):<\/p>\n<p>    if y == 0:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return x * power_with_recursion(x, y - 1)<\/p>\n<p>result = power_with_recursion(2, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f18\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u9002\u7528\u4e8e\u5b66\u4e60<\/strong>\uff1a\u5e2e\u52a9\u7406\u89e3\u9012\u5f52\u601d\u60f3\u3002<\/li>\n<li><strong>\u4ee3\u7801\u7b80\u6d01<\/strong>\uff1a\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4ee3\u7801\u66f4\u7b80\u6d01\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u6027\u80fd\u8f83\u4f4e<\/strong>\uff1a\u9012\u5f52\u8c03\u7528\u5f00\u9500\u8f83\u5927\u3002<\/li>\n<li><strong>\u4e0d\u9002\u7528\u4e8e\u5927y\u503c<\/strong>\uff1a\u9012\u5f52\u6df1\u5ea6\u8fc7\u5927\u53ef\u80fd\u5bfc\u81f4\u6808\u6ea2\u51fa\u3002<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u6570\u5b66\u5e93<\/h3>\n<\/p>\n<p><p>Python\u7684<code>math<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u7684\u6570\u5b66\u51fd\u6570\uff0c\u4f46\u5e76\u6ca1\u6709\u76f4\u63a5\u8ba1\u7b97\u5e42\u7684\u51fd\u6570\u3002\u4e0d\u8fc7\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u5176\u4ed6\u51fd\u6570\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u8fd0\u7b97\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>def power_with_math(x, y):<\/p>\n<p>    return math.exp(y * math.log(x))<\/p>\n<p>result = power_with_math(2, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa8.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f18\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u9002\u7528\u4e8e\u590d\u6742\u8fd0\u7b97<\/strong>\uff1a\u53ef\u4ee5\u4e0e\u5176\u4ed6\u6570\u5b66\u51fd\u6570\u7ed3\u5408\u4f7f\u7528\u3002<\/li>\n<li><strong>\u9ad8\u6027\u80fd<\/strong>\uff1a<code>math<\/code>\u5e93\u5728\u5e95\u5c42\u8fdb\u884c\u4e86\u4f18\u5316\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u4ee3\u7801\u590d\u6742<\/strong>\uff1a\u4e0d\u5982\u76f4\u63a5\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26\u6216\u51fd\u6570\u7b80\u6d01\u3002<\/li>\n<li><strong>\u7cbe\u5ea6\u95ee\u9898<\/strong>\uff1a\u7531\u4e8e\u6d6e\u70b9\u6570\u8fd0\u7b97\uff0c\u53ef\u80fd\u5b58\u5728\u7cbe\u5ea6\u8bef\u5dee\u3002<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u4e0d\u540c\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u8fdb\u884c\u7b80\u5355\u7684\u6027\u80fd\u6bd4\u8f83\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>def performance_test():<\/p>\n<p>    x, y = 2, 1000000<\/p>\n<p>    start = time.time()<\/p>\n<p>    power_with_operator(x, y)<\/p>\n<p>    end = time.time()<\/p>\n<p>    print(f&quot;Operator: {end - start} seconds&quot;)<\/p>\n<p>    start = time.time()<\/p>\n<p>    power_with_function(x, y)<\/p>\n<p>    end = time.time()<\/p>\n<p>    print(f&quot;Function: {end - start} seconds&quot;)<\/p>\n<p>    start = time.time()<\/p>\n<p>    power_with_loop(x, y)<\/p>\n<p>    end = time.time()<\/p>\n<p>    print(f&quot;Loop: {end - start} seconds&quot;)<\/p>\n<p>    start = time.time()<\/p>\n<p>    power_with_recursion(x, y)<\/p>\n<p>    end = time.time()<\/p>\n<p>    print(f&quot;Recursion: {end - start} seconds&quot;)<\/p>\n<p>performance_test()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u7ed3\u679c\u5206\u6790\uff1a<\/h4>\n<\/p>\n<ol>\n<li><strong>\u5185\u7f6e\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u6027\u80fd\u6700\u9ad8<\/strong>\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002<\/li>\n<li><strong>\u5faa\u73af\u548c\u9012\u5f52\u6027\u80fd\u8f83\u4f4e<\/strong>\uff0c\u4f46\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u5b66\u4e60\u548c\u7075\u6d3b\u6027\u7684\u673a\u4f1a\u3002<\/li>\n<\/ol>\n<p><h3>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<ol>\n<li><strong>\u79d1\u5b66\u8ba1\u7b97<\/strong>\uff1a\u901a\u5e38\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26<code><\/code>\u6216<code>pow()<\/code>\u51fd\u6570\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u6027\u80fd\u548c\u7cbe\u5ea6\u90fd\u5f88\u9ad8\u3002<\/li>\n<li><strong>\u5bc6\u7801\u5b66<\/strong>\uff1a\u5e38\u7528\u6a21\u5e42\u8fd0\u7b97\uff0c<code>pow(x, y, z)<\/code>\u975e\u5e38\u9002\u7528\u3002<\/li>\n<li><strong>\u6559\u5b66\u548c\u5b66\u4e60<\/strong>\uff1a\u4f7f\u7528\u5faa\u73af\u548c\u9012\u5f52\u6765\u5e2e\u52a9\u7406\u89e3\u57fa\u672c\u6982\u5ff5\u3002<\/li>\n<li><strong>\u590d\u6742\u6570\u5b66\u8fd0\u7b97<\/strong>\uff1a\u53ef\u4ee5\u7ed3\u5408<code>math<\/code>\u5e93\u8fdb\u884c\u66f4\u590d\u6742\u7684\u8fd0\u7b97\u3002<\/li>\n<\/ol>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u8ba1\u7b97\u5e42\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u7f3a\u70b9\u548c\u5e94\u7528\u573a\u666f<\/strong>\u3002\u5185\u7f6e\u8fd0\u7b97\u7b26\u548c\u51fd\u6570\u6700\u4e3a\u9ad8\u6548\u548c\u7b80\u6d01\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\uff1b\u5faa\u73af\u548c\u9012\u5f52\u65b9\u6cd5\u5219\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7075\u6d3b\u6027\uff0c\u9002\u5408\u7279\u6b8a\u9700\u6c42\u548c\u5b66\u4e60\u3002\u4e86\u89e3\u4e0d\u540c\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9\u548c\u5e94\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97x\u7684y\u6b21\u65b9\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684\u5e42\u8fd0\u7b97\u7b26<code>&lt;strong&gt;<\/code>\u6765\u8ba1\u7b97x\u7684y\u6b21\u65b9\u3002\u4f8b\u5982\uff0c<code>result = x &lt;\/strong&gt; y<\/code>\uff0c\u8fd9\u5c06\u8ba1\u7b97x\u7684y\u6b21\u65b9\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u53d8\u91cf<code>result<\/code>\u4e2d\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>pow()<\/code>\u51fd\u6570\uff0c<code>result = pow(x, y)<\/code>\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u76f8\u540c\u7684\u529f\u80fd\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u8fdb\u884c\u5e42\u8fd0\u7b97\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u7684<code>math<\/code>\u5e93\u4e2d\u63d0\u4f9b\u4e86<code>math.pow()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u8ba1\u7b97\u6d6e\u70b9\u6570\u7684\u5e42\u3002\u4f7f\u7528\u65f6\uff0c\u53ea\u9700\u5bfc\u5165math\u5e93\u5e76\u8c03\u7528<code>math.pow(x, y)<\/code>\u3002\u8fd9\u5728\u5904\u7406\u5927\u6570\u6216\u9700\u8981\u9ad8\u7cbe\u5ea6\u7684\u60c5\u51b5\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u8d1f\u6570\u6216\u5c0f\u6570\u7684\u5e42\u8fd0\u7b97\uff1f<\/strong><br \/>Python\u80fd\u591f\u5904\u7406\u8d1f\u6570\u548c\u5c0f\u6570\u7684\u5e42\u8fd0\u7b97\u3002\u4f8b\u5982\uff0c<code>result = (-2) &lt;strong&gt; 3<\/code>\u4f1a\u8fd4\u56de-8\uff0c\u800c<code>result = 2.5 &lt;\/strong&gt; 2<\/code>\u5c06\u8fd4\u56de6.25\u3002\u5bf9\u4e8e\u8d1f\u6570\u7684\u5e42\u8fd0\u7b97\uff0c\u7ed3\u679c\u4f1a\u6839\u636e\u6307\u6570\u7684\u5947\u5076\u6027\u800c\u6709\u6240\u4e0d\u540c\uff1b\u5982\u679c\u662f\u5076\u6570\uff0c\u7ed3\u679c\u4e3a\u6b63\uff1b\u5982\u679c\u662f\u5947\u6570\uff0c\u7ed3\u679c\u4e3a\u8d1f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u7f16\u5199\u8ba1\u7b97x\u7684y\u6b21\u65b9\u7684\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26&lt;\/strong&gt; [&hellip;]","protected":false},"author":3,"featured_media":1121903,"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\/1121899"}],"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=1121899"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121899\/revisions"}],"predecessor-version":[{"id":1121904,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121899\/revisions\/1121904"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1121903"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1121899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1121899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1121899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}