{"id":947800,"date":"2024-12-26T23:55:32","date_gmt":"2024-12-26T15:55:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/947800.html"},"modified":"2024-12-26T23:55:35","modified_gmt":"2024-12-26T15:55:35","slug":"python%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8math","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/947800.html","title":{"rendered":"python\u5982\u4f55\u4f7f\u7528math"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083428\/a9ee4c02-851c-466b-92b4-ce1ac8d0b6ee.webp\" alt=\"python\u5982\u4f55\u4f7f\u7528math\" \/><\/p>\n<p><p> Python\u4e2d\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u5404\u79cd\u6570\u5b66\u8fd0\u7b97\u3002<strong>\u8981\u4f7f\u7528<code>math<\/code>\u6a21\u5757\uff0c\u4f60\u9700\u8981\u5148\u5bfc\u5165\u5b83\uff0c\u53ef\u4ee5\u901a\u8fc7<code>import math<\/code>\u6765\u5b9e\u73b0\u3002<code>math<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u6570\u5b66\u51fd\u6570\u548c\u5e38\u91cf\uff0c\u6bd4\u5982<code>math.sqrt()<\/code>\u7528\u4e8e\u8ba1\u7b97\u5e73\u65b9\u6839\uff0c<code>math.pi<\/code>\u8868\u793a\u5706\u5468\u7387\u03c0\u7b49\u3002\u5229\u7528\u8fd9\u4e9b\u51fd\u6570\u548c\u5e38\u91cf\uff0c\u4f60\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u3002<\/strong>\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u7684\u4e00\u4e9b\u8be6\u7ec6\u8bf4\u660e\u548c\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001MATH\u6a21\u5757\u7684\u57fa\u672c\u7528\u6cd5<\/h3>\n<\/p>\n<p><p>Python\u7684<code>math<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u5f3a\u5927\u7684\u6570\u5b66\u51fd\u6570\uff0c\u8fd9\u4e9b\u51fd\u6570\u5927\u591a\u662f\u57fa\u4e8eC\u8bed\u8a00\u7684\u6570\u5b66\u5e93\u5b9e\u73b0\u7684\uff0c\u56e0\u6b64\u5177\u6709\u5f88\u9ad8\u7684\u6548\u7387\u548c\u51c6\u786e\u6027\u3002\u8981\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165<code>math<\/code>\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1\u3001\u5e38\u7528\u6570\u5b66\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>math<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u6570\u5b66\u51fd\u6570\uff0c\u5982\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5e73\u65b9\u6839<\/strong>\uff1a<code>math.sqrt(x)<\/code>\u7528\u4e8e\u8ba1\u7b97x\u7684\u5e73\u65b9\u6839\u3002\u4f8b\u5982\uff0c<code>math.sqrt(16)<\/code>\u8fd4\u56de4\u3002<\/li>\n<li><strong>\u6307\u6570\u51fd\u6570<\/strong>\uff1a<code>math.exp(x)<\/code>\u8fd4\u56dee\u7684x\u6b21\u5e42\u3002<\/li>\n<li><strong>\u5bf9\u6570\u51fd\u6570<\/strong>\uff1a<code>math.log(x[, base])<\/code>\u8fd4\u56dex\u7684\u5bf9\u6570\uff0c\u9ed8\u8ba4\u5e95\u4e3ae\u3002\u5982\u679c\u6307\u5b9abase\uff0c\u5219\u8ba1\u7b97\u4ee5base\u4e3a\u5e95\u7684\u5bf9\u6570\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u4e09\u89d2\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>math<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u4e09\u89d2\u51fd\u6570\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6b63\u5f26\u548c\u4f59\u5f26<\/strong>\uff1a<code>math.sin(x)<\/code>\u548c<code>math.cos(x)<\/code>\u5206\u522b\u8ba1\u7b97x\u7684\u6b63\u5f26\u548c\u4f59\u5f26\uff0cx\u662f\u5f27\u5ea6\u5236\u3002<\/li>\n<li><strong>\u6b63\u5207<\/strong>\uff1a<code>math.tan(x)<\/code>\u8ba1\u7b97x\u7684\u6b63\u5207\u3002<\/li>\n<li><strong>\u53cd\u4e09\u89d2\u51fd\u6570<\/strong>\uff1a<code>math.asin(x)<\/code>\u3001<code>math.acos(x)<\/code>\u548c<code>math.atan(x)<\/code>\u5206\u522b\u8ba1\u7b97x\u7684\u53cd\u6b63\u5f26\u3001\u53cd\u4f59\u5f26\u548c\u53cd\u6b63\u5207\u3002<\/li>\n<\/ul>\n<p><h4>3\u3001\u6570\u5b66\u5e38\u91cf<\/h4>\n<\/p>\n<p><p><code>math<\/code>\u6a21\u5757\u4e2d\u5b9a\u4e49\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u6570\u5b66\u5e38\u91cf\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5706\u5468\u7387<\/strong>\uff1a<code>math.pi<\/code>\u8868\u793a\u5706\u5468\u7387\u03c0\u3002<\/li>\n<li><strong>\u81ea\u7136\u5bf9\u6570\u7684\u5e95<\/strong>\uff1a<code>math.e<\/code>\u8868\u793a\u81ea\u7136\u5bf9\u6570\u7684\u5e95e\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001MATH\u6a21\u5757\u7684\u9ad8\u7ea7\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u6570\u5b66\u8fd0\u7b97\uff0c<code>math<\/code>\u6a21\u5757\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u9ad8\u6548\u5730\u89e3\u51b3\u590d\u6742\u7684\u6570\u5b66\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u9636\u4e58\u548c\u7ec4\u5408<\/h4>\n<\/p>\n<ul>\n<li><strong>\u9636\u4e58<\/strong>\uff1a<code>math.factorial(x)<\/code>\u7528\u4e8e\u8ba1\u7b97x\u7684\u9636\u4e58\u3002\u4f8b\u5982\uff0c<code>math.factorial(5)<\/code>\u8fd4\u56de120\u3002<\/li>\n<li><strong>\u7ec4\u5408<\/strong>\uff1a<code>math.comb(n, k)<\/code>\u8fd4\u56de\u4ecen\u4e2a\u5143\u7d20\u4e2d\u53d6k\u4e2a\u5143\u7d20\u7684\u7ec4\u5408\u6570\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u6d6e\u70b9\u6570\u8fd0\u7b97<\/h4>\n<\/p>\n<ul>\n<li><strong>\u820d\u5165\u51fd\u6570<\/strong>\uff1a<code>math.ceil(x)<\/code>\u548c<code>math.floor(x)<\/code>\u5206\u522b\u5411\u4e0a\u548c\u5411\u4e0b\u820d\u5165x\u3002<\/li>\n<li><strong>\u622a\u65ad\u51fd\u6570<\/strong>\uff1a<code>math.trunc(x)<\/code>\u5c06x\u622a\u65ad\u4e3a\u6574\u6570\u90e8\u5206\u3002<\/li>\n<\/ul>\n<p><h4>3\u3001\u7279\u6b8a\u51fd\u6570<\/h4>\n<\/p>\n<ul>\n<li><strong>Gamma\u51fd\u6570<\/strong>\uff1a<code>math.gamma(x)<\/code>\u7528\u4e8e\u8ba1\u7b97Gamma\u51fd\u6570\u3002<\/li>\n<li><strong>\u8bef\u5dee\u51fd\u6570<\/strong>\uff1a<code>math.erf(x)<\/code>\u7528\u4e8e\u8ba1\u7b97\u8bef\u5dee\u51fd\u6570\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001MATH\u6a21\u5757\u7684\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><h4>1\u3001\u8ba1\u7b97\u51e0\u4f55\u56fe\u5f62\u7684\u9762\u79ef<\/h4>\n<\/p>\n<p><p>\u5229\u7528<code>math<\/code>\u6a21\u5757\u4e2d\u7684\u5e38\u91cf\u548c\u51fd\u6570\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8ba1\u7b97\u51e0\u4f55\u56fe\u5f62\u7684\u9762\u79ef\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u5706\u7684\u9762\u79ef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def circle_area(radius):<\/p>\n<p>    return math.pi * math.pow(radius, 2)<\/p>\n<p>print(circle_area(5))  # \u8f93\u51fa\uff1a78.53981633974483<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u89e3\u51b3\u7269\u7406\u95ee\u9898<\/h4>\n<\/p>\n<p><p>\u5728\u7269\u7406\u8ba1\u7b97\u4e2d\uff0c<code>math<\/code>\u6a21\u5757\u4e5f\u80fd\u53d1\u6325\u91cd\u8981\u4f5c\u7528\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u7269\u4f53\u81ea\u7531\u843d\u4f53\u65f6\u7684\u901f\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def free_fall_speed(height):<\/p>\n<p>    g = 9.81  # \u91cd\u529b\u52a0\u901f\u5ea6<\/p>\n<p>    return math.sqrt(2 * g * height)<\/p>\n<p>print(free_fall_speed(10))  # \u8f93\u51fa\uff1a14.007141035914502<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u6982\u7387\u4e0e\u7edf\u8ba1<\/h4>\n<\/p>\n<p><p><code>math<\/code>\u6a21\u5757\u4e2d\u7684\u4e00\u4e9b\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u6982\u7387\u548c\u7edf\u8ba1\u8ba1\u7b97\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u4e8c\u9879\u5f0f\u5206\u5e03\u7684\u6982\u7387\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def binomial_probability(n, k, p):<\/p>\n<p>    return math.comb(n, k) * (p &lt;strong&gt; k) * ((1 - p) &lt;\/strong&gt; (n - k))<\/p>\n<p>print(binomial_probability(10, 3, 0.5))  # \u8f93\u51fa\uff1a0.1171875<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001MATH\u6a21\u5757\u7684\u5c40\u9650\u6027\u548c\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5c3d\u7ba1<code>math<\/code>\u6a21\u5757\u529f\u80fd\u5f3a\u5927\uff0c\u4f46\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u4ecd\u9700\u6ce8\u610f\u4e00\u4e9b\u9650\u5236\u548c\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7cbe\u5ea6\u95ee\u9898<\/h4>\n<\/p>\n<p><p>\u7531\u4e8e\u6d6e\u70b9\u6570\u7684\u8868\u793a\u9650\u5236\uff0c<code>math<\/code>\u6a21\u5757\u5728\u5904\u7406\u975e\u5e38\u5927\u7684\u6570\u6216\u975e\u5e38\u5c0f\u7684\u6570\u65f6\u53ef\u80fd\u4f1a\u51fa\u73b0\u7cbe\u5ea6\u95ee\u9898\u3002\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\uff0c\u9009\u62e9\u5408\u9002\u7684\u6570\u503c\u8303\u56f4\u548c\u7cbe\u5ea6\u8981\u6c42\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u9002\u7528\u8303\u56f4<\/h4>\n<\/p>\n<p><p><code>math<\/code>\u6a21\u5757\u4e3b\u8981\u7528\u4e8e\u5904\u7406\u5b9e\u6570\u7684\u6570\u5b66\u8fd0\u7b97\uff0c\u800c\u5bf9\u4e8e\u590d\u6570\u8fd0\u7b97\uff0cPython\u63d0\u4f9b\u4e86<code>cmath<\/code>\u6a21\u5757\u3002\u56e0\u6b64\uff0c\u5728\u5904\u7406\u590d\u6570\u65f6\uff0c\u5e94\u4f7f\u7528<code>cmath<\/code>\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u6027\u80fd\u8003\u8651<\/h4>\n<\/p>\n<p><p>\u867d\u7136<code>math<\/code>\u6a21\u5757\u7684\u51fd\u6570\u591a\u6570\u662f\u7528C\u5b9e\u73b0\u7684\uff0c\u6027\u80fd\u8f83\u9ad8\uff0c\u4f46\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\uff0c\u4ecd\u53ef\u80fd\u6210\u4e3a\u74f6\u9888\u3002\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u4f7f\u7528NumPy\u7b49\u79d1\u5b66\u8ba1\u7b97\u5e93\u6765\u63d0\u5347\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7efc\u5408\u5b9e\u4f8b\uff1a\u4f7f\u7528MATH\u6a21\u5757\u89e3\u51b3\u5b9e\u9645\u95ee\u9898<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3<code>math<\/code>\u6a21\u5757\u7684\u5e94\u7528\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u7efc\u5408\u5b9e\u4f8b\u6765\u5c55\u793a\u5982\u4f55\u5728\u5b9e\u9645\u95ee\u9898\u4e2d\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h4>\u5b9e\u4f8b\uff1a\u8ba1\u7b97\u629b\u7269\u7ebf\u7684\u9876\u70b9<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u5b66\u4e2d\uff0c\u4e8c\u6b21\u51fd\u6570\u7684\u5f62\u5f0f\u4e3a<code>y = ax^2 + bx + c<\/code>\uff0c\u5176\u56fe\u50cf\u4e3a\u629b\u7269\u7ebf\u3002\u629b\u7269\u7ebf\u7684\u9876\u70b9\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u7279\u5f81\u70b9\uff0c\u53ef\u4ee5\u901a\u8fc7<code>math<\/code>\u6a21\u5757\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def parabola_vertex(a, b, c):<\/p>\n<p>    # \u8ba1\u7b97\u9876\u70b9\u7684\u6a2a\u5750\u6807<\/p>\n<p>    h = -b \/ (2 * a)<\/p>\n<p>    # \u8ba1\u7b97\u9876\u70b9\u7684\u7eb5\u5750\u6807<\/p>\n<p>    k = a * math.pow(h, 2) + b * h + c<\/p>\n<p>    return (h, k)<\/p>\n<p>vertex = parabola_vertex(1, -3, 2)<\/p>\n<p>print(f&quot;\u629b\u7269\u7ebf\u7684\u9876\u70b9\u4e3a\uff1a{vertex}&quot;)  # \u8f93\u51fa\uff1a\u629b\u7269\u7ebf\u7684\u9876\u70b9\u4e3a\uff1a(1.5, -0.25)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u5b9e\u4f8b\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7<code>math<\/code>\u6a21\u5757\u7684<code>math.pow()<\/code>\u51fd\u6570\u8ba1\u7b97\u4e86\u9876\u70b9\u7684\u7eb5\u5750\u6807\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5229\u7528<code>math<\/code>\u6a21\u5757\u7b80\u5316\u6570\u5b66\u8ba1\u7b97\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff1aPython\u7684<code>math<\/code>\u6a21\u5757\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u5b66\u51fd\u6570\u548c\u5e38\u91cf\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u5404\u79cd\u6570\u5b66\u8fd0\u7b97\u3002\u5728\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5176\u9002\u7528\u8303\u56f4\u548c\u53ef\u80fd\u7684\u7cbe\u5ea6\u95ee\u9898\u3002\u901a\u8fc7\u7ed3\u5408\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff0c<code>math<\/code>\u6a21\u5757\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6570\u5b66\u8ba1\u7b97\u7684\u6548\u7387\u548c\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5bfc\u5165math\u6a21\u5757\uff1f<\/strong><br \/>\u5728Python\u4e2d\u4f7f\u7528math\u6a21\u5757\u975e\u5e38\u7b80\u5355\u3002\u60a8\u53ea\u9700\u5728\u4ee3\u7801\u7684\u5f00\u5934\u6dfb\u52a0<code>import math<\/code>\u5373\u53ef\u3002\u8fd9\u5c06\u4f7f\u60a8\u53ef\u4ee5\u8bbf\u95eemath\u6a21\u5757\u4e2d\u7684\u5404\u79cd\u6570\u5b66\u51fd\u6570\u548c\u5e38\u91cf\uff0c\u5982<code>math.pi<\/code>\u548c<code>math.sqrt()<\/code>\u7b49\u3002<\/p>\n<p><strong>math\u6a21\u5757\u4e2d\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u51fd\u6570\u548c\u5e38\u91cf\uff1f<\/strong><br \/>math\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u5e38\u7528\u7684\u6570\u5b66\u51fd\u6570\u548c\u5e38\u91cf\u3002\u4f8b\u5982\uff0c<code>math.sqrt(x)<\/code>\u53ef\u4ee5\u8ba1\u7b97x\u7684\u5e73\u65b9\u6839\uff0c<code>math.factorial(n)<\/code>\u7528\u4e8e\u8ba1\u7b97n\u7684\u9636\u4e58\uff0c<code>math.sin(x)<\/code>\u548c<code>math.cos(x)<\/code>\u53ef\u7528\u4e8e\u8ba1\u7b97\u4e09\u89d2\u51fd\u6570\u3002\u6b64\u5916\uff0c<code>math.pi<\/code>\u548c<code>math.e<\/code>\u5206\u522b\u8868\u793a\u5706\u5468\u7387\u548c\u81ea\u7136\u5e38\u6570e\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u6570\u5b66\u8fd0\u7b97\u7684\u7cbe\u5ea6\u95ee\u9898\uff1f<\/strong><br \/>Python\u7684math\u6a21\u5757\u63d0\u4f9b\u4e86\u9ad8\u7cbe\u5ea6\u7684\u6570\u5b66\u51fd\u6570\uff0c\u4f46\u5728\u8fdb\u884c\u6d6e\u70b9\u6570\u8fd0\u7b97\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u7cbe\u5ea6\u95ee\u9898\u3002\u4f7f\u7528<code>math.isclose(a, b)<\/code>\u53ef\u4ee5\u6bd4\u8f83\u4e24\u4e2a\u6d6e\u70b9\u6570\u662f\u5426\u8db3\u591f\u63a5\u8fd1\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528<code>decimal<\/code>\u6a21\u5757\u6765\u5904\u7406\u66f4\u9ad8\u7cbe\u5ea6\u7684\u8fd0\u7b97\uff0c\u4ee5\u907f\u514d\u6d6e\u70b9\u6570\u9020\u6210\u7684\u8bef\u5dee\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u4f7f\u7528math\u6a21\u5757\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u5404\u79cd\u6570\u5b66\u8fd0\u7b97\u3002\u8981\u4f7f\u7528math\u6a21\u5757\uff0c\u4f60\u9700\u8981\u5148\u5bfc\u5165\u5b83\uff0c\u53ef\u4ee5\u901a\u8fc7impo [&hellip;]","protected":false},"author":3,"featured_media":947807,"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\/947800"}],"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=947800"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/947800\/revisions"}],"predecessor-version":[{"id":947808,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/947800\/revisions\/947808"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/947807"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=947800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=947800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=947800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}