{"id":1012366,"date":"2024-12-27T11:38:15","date_gmt":"2024-12-27T03:38:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1012366.html"},"modified":"2024-12-27T11:38:19","modified_gmt":"2024-12-27T03:38:19","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e8%a1%a8%e7%a4%ba%e6%a0%b9%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1012366.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u8868\u793a\u6839\u53f7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090150\/a2bbf12d-5f86-4582-a552-400c9874042e.webp\" alt=\"python\u4e2d\u5982\u4f55\u8868\u793a\u6839\u53f7\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8868\u793a\u6839\u53f7\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u6709\uff1a\u4f7f\u7528\u201c<\/strong>\u201d\u8868\u793a\u5e42\u8fd0\u7b97\u3001\u4f7f\u7528math\u5e93\u4e2d\u7684sqrt\u51fd\u6570\u3001\u4f7f\u7528NumPy\u5e93\u4e2d\u7684sqrt\u51fd\u6570\u3002<strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u201c<\/strong>\u201d\u8868\u793a\u5e42\u8fd0\u7b97\u662fPython\u4e2d\u6700\u57fa\u672c\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u65e0\u9700\u5bfc\u5165\u989d\u5916\u7684\u5e93\u3002math\u5e93\u7684sqrt\u51fd\u6570\u63d0\u4f9b\u4e86\u66f4\u76f4\u89c2\u548c\u6e05\u6670\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3asqrt\u5373\u662fsquare root\uff08\u5e73\u65b9\u6839\uff09\u7684\u7f29\u5199\u3002NumPy\u5e93\u7684sqrt\u51fd\u6570\u7279\u522b\u9002\u5408\u5904\u7406\u6570\u7ec4\u6216\u77e9\u9635\u4e2d\u7684\u5143\u7d20\uff0c\u56e0\u4e3aNumPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u80fd\u591f\u9ad8\u6548\u5730\u5904\u7406\u5927\u89c4\u6a21\u7684\u6570\u636e\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528math\u5e93\u4e2d\u7684sqrt\u51fd\u6570\u3002math\u5e93\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u5176\u4e2d\u7684sqrt\u51fd\u6570\u4e13\u95e8\u7528\u4e8e\u8ba1\u7b97\u5e73\u65b9\u6839\u3002\u4f7f\u7528math.sqrt()\u51fd\u6570\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u9996\u5148\u9700\u8981\u5bfc\u5165math\u5e93\uff0c\u56e0\u4e3a\u5b83\u662f\u4e00\u4e2a\u5916\u90e8\u5e93\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5e76\u4e0d\u5305\u542b\u5728Python\u7684\u57fa\u7840\u8bed\u6cd5\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>import math<\/code>\u8bed\u53e5\u6765\u5bfc\u5165\u3002<\/li>\n<li>\u8c03\u7528math.sqrt()\u51fd\u6570\u5e76\u4f20\u5165\u4e00\u4e2a\u6b63\u6570\u4f5c\u4e3a\u53c2\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u4f1a\u8fd4\u56de\u8be5\u6570\u7684\u5e73\u65b9\u6839\u3002<\/li>\n<li>\u5982\u679c\u4f20\u5165\u7684\u53c2\u6570\u662f\u8d1f\u6570\uff0cmath.sqrt()\u51fd\u6570\u4f1a\u629b\u51fa\u4e00\u4e2aValueError\uff0c\u56e0\u4e3a\u8d1f\u6570\u6ca1\u6709\u5b9e\u6570\u5e73\u65b9\u6839\u3002<\/li>\n<\/ol>\n<p><p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>number = 16<\/p>\n<p>result = math.sqrt(number)<\/p>\n<p>print(f&quot;The square root of {number} is {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c06\u8f93\u51fa\uff1a\u201cThe square root of 16 is 4.0\u201d\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u201c\u201d\u8868\u793a\u5e42\u8fd0\u7b97<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53cc\u661f\u53f7\u201c<strong>\u201d\u7528\u4e8e\u8868\u793a\u5e42\u8fd0\u7b97\u3002\u53ef\u4ee5\u7528\u5b83\u6765\u8ba1\u7b97\u4e00\u4e2a\u6570\u7684\u5e73\u65b9\u6839\uff0c\u4f8b\u5982\uff0c\u8ba1\u7b9716\u7684\u5e73\u65b9\u6839\u53ef\u4ee5\u5199\u4f5c16<\/strong>0.5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7b80\u5355\u76f4\u63a5\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5355\u4e2a\u6570\u65f6\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 16<\/p>\n<p>result = number  0.5<\/p>\n<p>print(f&quot;The square root of {number} is {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u5728\u4e8e\u4e0d\u9700\u8981\u5bfc\u5165\u4efb\u4f55\u989d\u5916\u7684\u5e93\uff0c\u76f4\u63a5\u4f7f\u7528Python\u7684\u57fa\u672c\u8fd0\u7b97\u7b26\u5373\u53ef\u3002\u4f46\u662f\uff0c\u5b83\u5728\u5904\u7406\u590d\u6742\u7684\u6570\u5b66\u8fd0\u7b97\u65f6\u53ef\u80fd\u4e0d\u591f\u76f4\u89c2\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528NumPy\u5e93\u4e2d\u7684sqrt\u51fd\u6570<\/p>\n<\/p>\n<p><p>NumPy\u662fPython\u4e2d\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u7528\u4e8e\u6570\u7ec4\u548c\u77e9\u9635\u8fd0\u7b97\u7684\u51fd\u6570\u3002NumPy\u7684sqrt\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u8ba1\u7b97\u5355\u4e2a\u6570\u7684\u5e73\u65b9\u6839\uff0c\u8fd8\u53ef\u4ee5\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u5e73\u65b9\u6839\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528NumPy\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u9996\u5148\u9700\u8981\u5b89\u88c5NumPy\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u5de5\u5177\u8fdb\u884c\u5b89\u88c5\uff1a<code>pip install numpy<\/code>\u3002<\/li>\n<li>\u5bfc\u5165NumPy\u5e93\uff0c\u901a\u5e38\u4f7f\u7528<code>import numpy as np<\/code>\u6765\u7b80\u5316\u547d\u540d\u3002<\/li>\n<li>\u4f7f\u7528np.sqrt()\u51fd\u6570\u4f20\u5165\u4e00\u4e2a\u6570\u6216\u6570\u7ec4\uff0c\u8fd4\u56de\u5bf9\u5e94\u7684\u5e73\u65b9\u6839\u3002<\/li>\n<\/ol>\n<p><p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>numbers = np.array([4, 9, 16, 25])<\/p>\n<p>results = np.sqrt(numbers)<\/p>\n<p>print(f&quot;The square roots are {results}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>NumPy\u7684\u4f18\u70b9\u5728\u4e8e\u9ad8\u6548\u7684\u6570\u7ec4\u8fd0\u7b97\u80fd\u529b\uff0c\u80fd\u591f\u5feb\u901f\u5904\u7406\u5927\u91cf\u6570\u636e\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u8fd0\u7b97\uff0c\u5bfc\u5165\u6574\u4e2aNumPy\u5e93\u53ef\u80fd\u663e\u5f97\u6709\u4e9b\u591a\u4f59\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u4f18\u7f3a\u70b9<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u201c<\/strong>\u201d\u8868\u793a\u5e42\u8fd0\u7b97\uff1a\u7b80\u5355\u3001\u76f4\u63a5\uff0c\u65e0\u9700\u5bfc\u5165\u5e93\u3002\u9002\u5408\u5904\u7406\u5355\u4e2a\u6570\u7684\u5e73\u65b9\u6839\u8ba1\u7b97\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u6570\u7ec4\u6216\u590d\u6742\u7684\u6570\u5b66\u8fd0\u7b97\uff0c\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u53ef\u80fd\u4e0d\u591f\u76f4\u89c2\u548c\u7075\u6d3b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528math\u5e93\u4e2d\u7684sqrt\u51fd\u6570<\/strong>\uff1a\u66f4\u52a0\u76f4\u89c2\uff0c\u9002\u5408\u5904\u7406\u6570\u5b66\u8fd0\u7b97\u3002\u9700\u8981\u5bfc\u5165math\u5e93\uff0c\u9002\u7528\u4e8e\u5355\u4e2a\u6570\u7684\u8ba1\u7b97\uff0c\u4e0d\u652f\u6301\u6570\u7ec4\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528NumPy\u5e93\u4e2d\u7684sqrt\u51fd\u6570<\/strong>\uff1a\u5f3a\u5927\u4e14\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u548c\u6570\u7ec4\u8fd0\u7b97\u3002\u9700\u8981\u5b89\u88c5\u5e76\u5bfc\u5165NumPy\u5e93\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u8fd0\u7b97\u53ef\u80fd\u663e\u5f97\u8fc7\u4e8e\u590d\u6742\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5728Python\u4e2d\u5904\u7406\u8d1f\u6570\u7684\u5e73\u65b9\u6839<\/p>\n<\/p>\n<p><p>\u8ba1\u7b97\u8d1f\u6570\u7684\u5e73\u65b9\u6839\u6d89\u53ca\u5230\u590d\u6570\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528cmath\u5e93\u5904\u7406\u590d\u6570\u8fd0\u7b97\uff0c\u5176\u4e2d\u7684sqrt\u51fd\u6570\u53ef\u4ee5\u8ba1\u7b97\u8d1f\u6570\u7684\u5e73\u65b9\u6839\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528cmath\u5e93\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5bfc\u5165cmath\u5e93\uff0c\u4f7f\u7528<code>import cmath<\/code>\u3002<\/li>\n<li>\u8c03\u7528cmath.sqrt()\u51fd\u6570\u4f20\u5165\u4e00\u4e2a\u8d1f\u6570\uff0c\u8fd4\u56de\u5bf9\u5e94\u7684\u590d\u6570\u5e73\u65b9\u6839\u3002<\/li>\n<\/ol>\n<p><p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cmath<\/p>\n<p>number = -16<\/p>\n<p>result = cmath.sqrt(number)<\/p>\n<p>print(f&quot;The square root of {number} is {result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7ed3\u679c\u5c06\u8f93\u51fa\uff1a\u201cThe square root of -16 is 4j\u201d\uff0c\u5176\u4e2dj\u8868\u793a\u865a\u6570\u5355\u4f4d\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5e94\u7528\u5b9e\u4f8b\uff1a\u8ba1\u7b97\u51fd\u6570\u7684\u6839<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8ba1\u7b97\u5e73\u65b9\u6839\u5e38\u7528\u4e8e\u6c42\u89e3\u65b9\u7a0b\u7684\u6839\u3002\u4f8b\u5982\uff0c\u6c42\u89e3\u4e00\u5143\u4e8c\u6b21\u65b9\u7a0b\u7684\u6839\u53ef\u4ee5\u4f7f\u7528\u5e73\u65b9\u6839\u516c\u5f0f\u3002\u5047\u8bbe\u65b9\u7a0b\u4e3aax^2 + bx + c = 0\uff0c\u5176\u6839\u7684\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1ax = (-b \u00b1 sqrt(b^2 &#8211; 4ac)) \/ (2a)\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>def solve_quadratic(a, b, c):<\/p>\n<p>    discriminant = b2 - 4*a*c<\/p>\n<p>    if discriminant &lt; 0:<\/p>\n<p>        return &quot;No real roots&quot;<\/p>\n<p>    else:<\/p>\n<p>        root1 = (-b + math.sqrt(discriminant)) \/ (2*a)<\/p>\n<p>        root2 = (-b - math.sqrt(discriminant)) \/ (2*a)<\/p>\n<p>        return root1, root2<\/p>\n<p>a, b, c = 1, -3, 2<\/p>\n<p>roots = solve_quadratic(a, b, c)<\/p>\n<p>print(f&quot;The roots of the equation are: {roots}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u5e73\u65b9\u6839\u51fd\u6570\u6765\u6c42\u89e3\u65b9\u7a0b\u7684\u6839\uff0c\u7ed3\u5408\u6570\u5b66\u548c\u7f16\u7a0b\u7684\u77e5\u8bc6\uff0c\u5b9e\u73b0\u4ece\u5b9e\u9645\u95ee\u9898\u5230\u4ee3\u7801\u5b9e\u73b0\u7684\u8f6c\u5316\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff0cPython\u4e2d\u8ba1\u7b97\u5e73\u65b9\u6839\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u4f7f\u7528\u573a\u666f\u548c\u9700\u6c42\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u8fd0\u7b97\uff0c\u4f7f\u7528\u201c\u201d\u6216math\u5e93\u4e2d\u7684sqrt\u51fd\u6570\u5373\u53ef\u3002\u800c\u5bf9\u4e8e\u590d\u6742\u7684\u6570\u636e\u8fd0\u7b97\u6216\u6570\u7ec4\u64cd\u4f5c\uff0cNumPy\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u652f\u6301\u3002\u5bf9\u4e8e\u6d89\u53ca\u590d\u6570\u8fd0\u7b97\u7684\u573a\u666f\uff0ccmath\u5e93\u662f\u4e00\u4e2a\u7406\u60f3\u7684\u9009\u62e9\u3002\u901a\u8fc7\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u80fd\u591f\u6709\u6548\u5730\u89e3\u51b3\u5404\u79cd\u6570\u5b66\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\u5982\u4f55\u8ba1\u7b97\u5e73\u65b9\u6839\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>sqrt()<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u5e73\u65b9\u6839\u3002\u9996\u5148\u9700\u8981\u5bfc\u5165<code>math<\/code>\u6a21\u5757\uff0c\u7136\u540e\u8c03\u7528<code>sqrt()<\/code>\u51fd\u6570\u5e76\u4f20\u5165\u9700\u8981\u8ba1\u7b97\u5e73\u65b9\u6839\u7684\u6570\u5b57\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import math\nresult = math.sqrt(16)  # \u7ed3\u679c\u4e3a4.0\n<\/code><\/pre>\n<p><strong>\u9664\u4e86\u4f7f\u7528math\u6a21\u5757\uff0c\u8fd8\u6709\u5176\u4ed6\u65b9\u6cd5\u6765\u8868\u793a\u6839\u53f7\u5417\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u3002\u9664\u4e86<code>math.sqrt()<\/code>\uff0cPython\u652f\u6301\u4f7f\u7528\u5e42\u8fd0\u7b97\u7b26<code>**<\/code>\u6765\u8ba1\u7b97\u5e73\u65b9\u6839\u3002\u901a\u8fc7\u5c06\u6570\u5b57\u7684\u5e42\u8bbe\u7f6e\u4e3a0.5\uff0c\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5e73\u65b9\u6839\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">result = 16 ** 0.5  # \u7ed3\u679c\u4e3a4.0\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5904\u7406\u8d1f\u6570\u7684\u5e73\u65b9\u6839\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u8ba1\u7b97\u8d1f\u6570\u7684\u5e73\u65b9\u6839\u4f1a\u5bfc\u81f4\u9519\u8bef\uff0c\u56e0\u4e3a\u5e73\u65b9\u6839\u5728\u5b9e\u6570\u8303\u56f4\u5185\u662f\u672a\u5b9a\u4e49\u7684\u3002\u4e3a\u4e86\u8ba1\u7b97\u8d1f\u6570\u7684\u5e73\u65b9\u6839\uff0c\u53ef\u4ee5\u4f7f\u7528<code>cmath<\/code>\u6a21\u5757\uff0c\u5b83\u652f\u6301\u590d\u6570\u8fd0\u7b97\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import cmath\nresult = cmath.sqrt(-16)  # \u7ed3\u679c\u4e3a4j\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u590d\u6570\u7ed3\u679c\uff0c\u5176\u4e2d<code>j<\/code>\u8868\u793a\u865a\u6570\u5355\u4f4d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8868\u793a\u6839\u53f7\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u6709\uff1a\u4f7f\u7528\u201c\u201d\u8868\u793a\u5e42\u8fd0\u7b97\u3001\u4f7f\u7528math\u5e93\u4e2d\u7684sqrt\u51fd\u6570\u3001\u4f7f\u7528Num [&hellip;]","protected":false},"author":3,"featured_media":1012376,"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\/1012366"}],"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=1012366"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012366\/revisions"}],"predecessor-version":[{"id":1012379,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1012366\/revisions\/1012379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1012376"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1012366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1012366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1012366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}