{"id":959997,"date":"2024-12-27T03:45:44","date_gmt":"2024-12-26T19:45:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/959997.html"},"modified":"2024-12-27T03:45:46","modified_gmt":"2024-12-26T19:45:46","slug":"python%e4%b8%8a%e5%a6%82%e4%bd%95%e8%a1%a8%e7%a4%baln","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/959997.html","title":{"rendered":"Python\u4e0a\u5982\u4f55\u8868\u793aln"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102637\/04a2afe9-0863-4239-b7c4-3b081387f886.webp\" alt=\"Python\u4e0a\u5982\u4f55\u8868\u793aln\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c<strong>\u8868\u793a\u81ea\u7136\u5bf9\u6570\uff08ln\uff09\u7684\u65b9\u6cd5\u4e3b\u8981\u662f\u4f7f\u7528math\u5e93\u4e2d\u7684log\u51fd\u6570<\/strong>\u3001<strong>\u4ee5\u53ca\u5229\u7528numpy\u5e93\u4e2d\u7684log\u51fd\u6570<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528math\u5e93\u7684log\u51fd\u6570\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u4e14\u76f4\u63a5\u7684\u65b9\u5f0f\u6765\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e24\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528MATH\u5e93\u4e2d\u7684LOG\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u7684\u6807\u51c6\u5e93math\u4e2d\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3alog\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u3002\u8981\u4f7f\u7528\u8fd9\u4e2a\u51fd\u6570\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165math\u5e93\u3002math.log\u9ed8\u8ba4\u8ba1\u7b97\u7684\u662f\u81ea\u7136\u5bf9\u6570\uff0c\u4e5f\u5c31\u662f\u4ee5e\u4e3a\u5e95\u7684\u5bf9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570<\/strong><\/h2>\n<p>value = 10<\/p>\n<p>result = math.log(value)<\/p>\n<p>print(f&quot;\u81ea\u7136\u5bf9\u6570 ln({value}) = {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1. MATH.LOG\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p><strong>math.log\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff0c\u4e5f\u53ef\u4ee5\u8ba1\u7b97\u4efb\u610f\u5e95\u6570\u7684\u5bf9\u6570<\/strong>\u3002\u8fd9\u901a\u8fc7\u4f20\u9012\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6765\u5b9e\u73b0\uff0c\u4f8b\u5982math.log(x, base)\u8ba1\u7b97\u4ee5base\u4e3a\u5e95\u7684\u5bf9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u8ba1\u7b97\u4ee510\u4e3a\u5e95\u7684\u5bf9\u6570<\/strong><\/h2>\n<p>value = 100<\/p>\n<p>base = 10<\/p>\n<p>result = math.log(value, base)<\/p>\n<p>print(f&quot;\u4ee5{base}\u4e3a\u5e95\u7684\u5bf9\u6570 log_{base}({value}) = {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u5927\u591a\u6570\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u81ea\u7136\u5bf9\u6570\u7684\u4f7f\u7528\u9891\u7387\u8f83\u9ad8\uff0c\u56e0\u4e3a\u8bb8\u591a\u6570\u5b66\u6a21\u578b\u548c\u516c\u5f0f\u90fd\u6d89\u53cae\u4e3a\u5e95\u7684\u5bf9\u6570\u3002\u56e0\u6b64\uff0c\u4f7f\u7528math.log\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u662f\u975e\u5e38\u5e38\u89c1\u7684\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528NUMPY\u5e93\u4e2d\u7684LOG\u51fd\u6570<\/h3>\n<\/p>\n<p><p>NumPy\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u6570\u5b66\u51fd\u6570\uff0c\u5176\u4e2d\u5305\u62ec\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u7684\u51fd\u6570log\u3002NumPy\u7684log\u51fd\u6570\u4e0emath.log\u7c7b\u4f3c\uff0c\u4f46\u5b83\u53ef\u4ee5\u5bf9\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u975e\u5e38\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570<\/strong><\/h2>\n<p>value = np.array([1, 10, 100])<\/p>\n<p>result = np.log(value)<\/p>\n<p>print(f&quot;\u81ea\u7136\u5bf9\u6570 ln({value}) = {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1. NUMPY.LOG\u7684\u5e94\u7528<\/h4>\n<\/p>\n<p><p><strong>NumPy\u5e93\u4e2d\u7684log\u51fd\u6570\u53ef\u4ee5\u5bf9\u591a\u4e2a\u503c\u540c\u65f6\u8fdb\u884c\u8ba1\u7b97<\/strong>\uff0c\u8fd9\u5728\u9700\u8981\u5bf9\u6570\u7ec4\u6216\u77e9\u9635\u8fdb\u884c\u81ea\u7136\u5bf9\u6570\u8fd0\u7b97\u65f6\u975e\u5e38\u65b9\u4fbf\u3002NumPy\u7684log\u51fd\u6570\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f\u5bf9\u5e94\u4f4d\u7f6e\u4e0a\u8f93\u5165\u6570\u7ec4\u5143\u7d20\u7684\u81ea\u7136\u5bf9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u8ba1\u7b97\u6570\u7ec4\u7684\u81ea\u7136\u5bf9\u6570<\/strong><\/h2>\n<p>values = np.array([1, 10, 100, 1000])<\/p>\n<p>results = np.log(values)<\/p>\n<p>print(&quot;\u81ea\u7136\u5bf9\u6570\u7ed3\u679c\uff1a&quot;, results)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>NumPy\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u5e95\u6570\u7684\u5bf9\u6570\u51fd\u6570<\/strong>\uff0c\u4f8b\u5982log10\u8ba1\u7b97\u4ee510\u4e3a\u5e95\u7684\u5bf9\u6570\uff0clog2\u8ba1\u7b97\u4ee52\u4e3a\u5e95\u7684\u5bf9\u6570\uff0c\u8fd9\u4e9b\u51fd\u6570\u4e0elog\u51fd\u6570\u7c7b\u4f3c\uff0c\u53ef\u4ee5\u5bf9\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5e94\u7528\u573a\u666f\u4e0e\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u3001\u6570\u636e\u5206\u6790\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u7b49\u9886\u57df\uff0c\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u662f\u975e\u5e38\u5e38\u89c1\u7684\u9700\u6c42\u3002\u9009\u62e9\u4f7f\u7528math\u5e93\u8fd8\u662fNumPy\u5e93\uff0c\u901a\u5e38\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5355\u4e2a\u6570\u503c\u8ba1\u7b97<\/strong>\uff1a\u5982\u679c\u53ea\u662f\u7b80\u5355\u5730\u5bf9\u5355\u4e2a\u6570\u503c\u8fdb\u884c\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97\uff0cmath.log\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u4f7f\u7528\u7b80\u5355\uff0c\u4e14\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u5e93\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406<\/strong>\uff1a\u5982\u679c\u9700\u8981\u5bf9\u5927\u91cf\u6570\u636e\u8fdb\u884c\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97\uff0cNumPy\u7684log\u51fd\u6570\u66f4\u4e3a\u9ad8\u6548\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u76f4\u63a5\u5bf9\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\uff0c\u907f\u514d\u4e86\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u5faa\u73af\u8ba1\u7b97\u7684\u5f00\u9500\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9700\u8981\u66f4\u591a\u79d1\u5b66\u8ba1\u7b97\u529f\u80fd<\/strong>\uff1aNumPy\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u5bf9\u6570\u51fd\u6570\uff0c\u8fd8\u5305\u62ec\u8bb8\u591a\u5176\u4ed6\u79d1\u5b66\u8ba1\u7b97\u529f\u80fd\uff0c\u4f8b\u5982\u7ebf\u6027\u4ee3\u6570\u3001\u5085\u91cc\u53f6\u53d8\u6362\u7b49\uff0c\u5982\u679c\u4f60\u7684\u9879\u76ee\u6d89\u53ca\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u4f7f\u7528NumPy\u4f1a\u66f4\u52a0\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u7684\u5b9e\u9645\u6848\u4f8b<\/h3>\n<\/p>\n<p><h4>1. \u6570\u636e\u6807\u51c6\u5316<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u548c\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u5bf9\u6570\u53d8\u6362\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6807\u51c6\u5316\u65b9\u6cd5\uff0c\u5c24\u5176\u5728\u7279\u5f81\u503c\u53d8\u5316\u8303\u56f4\u8f83\u5927\u65f6\u3002\u901a\u8fc7\u5bf9\u6570\u53d8\u6362\uff0c\u53ef\u4ee5\u538b\u7f29\u6570\u636e\u7684\u53d8\u5316\u8303\u56f4\uff0c\u4f7f\u5176\u66f4\u52a0\u9002\u5408\u6a21\u578b\u8bad\u7ec3\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u6a21\u62df\u6570\u636e<\/strong><\/h2>\n<p>data = np.array([1, 10, 100, 1000, 10000])<\/p>\n<h2><strong>\u5bf9\u6570\u53d8\u6362<\/strong><\/h2>\n<p>log_data = np.log(data)<\/p>\n<p>print(&quot;\u5bf9\u6570\u53d8\u6362\u540e\u7684\u6570\u636e\uff1a&quot;, log_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u71b5\u7684\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u5728\u4fe1\u606f\u8bba\u4e2d\uff0c\u71b5\u662f\u8861\u91cf\u4fe1\u606f\u4e0d\u786e\u5b9a\u6027\u7684\u4e00\u4e2a\u6307\u6807\u3002\u71b5\u7684\u8ba1\u7b97\u516c\u5f0f\u4e2d\u5305\u542b\u5bf9\u6570\u8fd0\u7b97\uff0c\u56e0\u6b64\u5728\u8ba1\u7b97\u71b5\u65f6\u901a\u5e38\u9700\u8981\u7528\u5230\u81ea\u7136\u5bf9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u8ba1\u7b97\u71b5<\/strong><\/h2>\n<p>def calculate_entropy(probabilities):<\/p>\n<p>    return -np.sum(probabilities * np.log(probabilities))<\/p>\n<h2><strong>\u793a\u4f8b\u6982\u7387\u5206\u5e03<\/strong><\/h2>\n<p>probabilities = np.array([0.2, 0.5, 0.3])<\/p>\n<p>entropy = calculate_entropy(probabilities)<\/p>\n<p>print(&quot;\u71b5\uff1a&quot;, entropy)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8f93\u5165\u503c\u5fc5\u987b\u4e3a\u6b63\u6570<\/strong>\uff1a\u81ea\u7136\u5bf9\u6570\u7684\u5b9a\u4e49\u57df\u662f\u6b63\u5b9e\u6570\uff0c\u56e0\u6b64\u5728\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u65f6\uff0c\u8f93\u5165\u503c\u5fc5\u987b\u4e3a\u6b63\u6570\u3002\u5982\u679c\u8f93\u5165\u503c\u4e3a\u8d1f\u6570\u6216\u96f6\uff0cmath.log\u548cnumpy.log\u90fd\u4f1a\u629b\u51faValueError\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u5927\u6570\u636e\u65f6\u7684\u6548\u7387<\/strong>\uff1a\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u5c3d\u91cf\u4f7f\u7528NumPy\u7684log\u51fd\u6570\uff0c\u56e0\u4e3a\u5b83\u7ecf\u8fc7\u4f18\u5316\uff0c\u80fd\u591f\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u6279\u91cf\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0d\u540c\u5e95\u6570\u7684\u5bf9\u6570\u8f6c\u6362<\/strong>\uff1a\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u81ea\u7136\u5bf9\u6570\u8f6c\u6362\u4e3a\u5176\u4ed6\u5e95\u6570\u7684\u5bf9\u6570\u3002\u53ef\u4ee5\u5229\u7528\u5bf9\u6570\u7684\u6362\u5e95\u516c\u5f0f\uff1alog_b(x) = log_k(x) \/ log_k(b)\uff0c\u5176\u4e2dk\u901a\u5e38\u53d6\u81ea\u7136\u5bf9\u6570\u7684\u5e95\u6570e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u6362\u5e95\u516c\u5f0f\u8ba1\u7b97<\/strong><\/h2>\n<p>value = 100<\/p>\n<p>base = 10<\/p>\n<p>result = math.log(value) \/ math.log(base)<\/p>\n<p>print(f&quot;\u4ee5{base}\u4e3a\u5e95\u7684\u5bf9\u6570 log_{base}({value}) = {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u6709\u6548\u5730\u8868\u793a\u548c\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff08ln\uff09\uff0c\u5e76\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5145\u5206\u5229\u7528\u8fd9\u4e9b\u51fd\u6570\u6765\u89e3\u51b3\u5404\u79cd\u79d1\u5b66\u8ba1\u7b97\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>math<\/code>\u5e93\u4e2d\u7684<code>log<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u3002\u53ea\u9700\u4f20\u5165\u4e00\u4e2a\u6570\u503c\u4f5c\u4e3a\u53c2\u6570\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5b83\u5c06\u8fd4\u56de\u8be5\u6570\u7684\u81ea\u7136\u5bf9\u6570\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>math.log(10)<\/code>\u5c06\u8fd4\u56de10\u7684\u81ea\u7136\u5bf9\u6570\u3002\u786e\u4fdd\u5728\u4f7f\u7528\u4e4b\u524d\u5bfc\u5165<code>math<\/code>\u5e93\uff1a<code>import math<\/code>\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u7528\u4e8e\u8ba1\u7b97ln\uff1f<\/strong><br \/>\u9664\u4e86<code>math<\/code>\u5e93\uff0c<code>numpy<\/code>\u5e93\u4e5f\u53ef\u4ee5\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u3002\u4f7f\u7528<code>numpy.log()<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u6570\u7ec4\u6216\u5355\u4e2a\u6570\u503c\u7684\u81ea\u7136\u5bf9\u6570\uff0c\u8fd9\u5728\u5904\u7406\u79d1\u5b66\u8ba1\u7b97\u65f6\u975e\u5e38\u65b9\u4fbf\u3002\u4f8b\u5982\uff1a<code>import numpy as np<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>np.log(10)<\/code>\u5373\u53ef\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u8d1f\u6570\u548c\u96f6\u7684\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u65f6\uff0c\u5982\u679c\u4f20\u5165\u8d1f\u6570\u6216\u96f6\uff0c\u5c06\u4f1a\u5f15\u53d1<code>ValueError<\/code>\u3002\u8981\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u53ef\u4ee5\u5728\u8ba1\u7b97\u4e4b\u524d\u8fdb\u884c\u68c0\u67e5\uff0c\u786e\u4fdd\u8f93\u5165\u503c\u5927\u4e8e\u96f6\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u6765\u786e\u8ba4\uff1a<code>if x &gt; 0: log_value = math.log(x)<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5904\u7406\u65e0\u6548\u8f93\u5165\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u8868\u793a\u81ea\u7136\u5bf9\u6570\uff08ln\uff09\u7684\u65b9\u6cd5\u4e3b\u8981\u662f\u4f7f\u7528math\u5e93\u4e2d\u7684log\u51fd\u6570\u3001\u4ee5\u53ca\u5229\u7528numpy\u5e93\u4e2d\u7684log [&hellip;]","protected":false},"author":3,"featured_media":960003,"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\/959997"}],"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=959997"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/959997\/revisions"}],"predecessor-version":[{"id":960004,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/959997\/revisions\/960004"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/960003"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=959997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=959997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=959997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}