{"id":982589,"date":"2024-12-27T07:12:00","date_gmt":"2024-12-26T23:12:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/982589.html"},"modified":"2024-12-27T07:12:02","modified_gmt":"2024-12-26T23:12:02","slug":"python%e4%b8%adln%e5%a6%82%e4%bd%95%e8%a1%a8%e8%be%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/982589.html","title":{"rendered":"python\u4e2dln\u5982\u4f55\u8868\u8fbe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211012\/b3c69c0a-d319-4fc3-9029-3de7632b06a0.webp\" alt=\"python\u4e2dln\u5982\u4f55\u8868\u8fbe\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c<strong>\u81ea\u7136\u5bf9\u6570\u51fd\u6570\u53ef\u4ee5\u901a\u8fc7<code>math<\/code>\u5e93\u4e2d\u7684<code>log<\/code>\u51fd\u6570\u6765\u5b9e\u73b0<\/strong>\u3002\u5177\u4f53\u6765\u8bf4\uff0c<code>math.log(x)<\/code>\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97\u4ee5e\u4e3a\u5e95\u7684\u81ea\u7136\u5bf9\u6570\uff0c\u5176\u4e2de\u662f\u6570\u5b66\u5e38\u6570\uff0c\u7ea6\u7b49\u4e8e2.71828\u3002Python\u4e2d\u6ca1\u6709\u76f4\u63a5\u7684<code>ln<\/code>\u51fd\u6570\uff0c\u4f46<code>log<\/code>\u51fd\u6570\u53ef\u4ee5\u901a\u8fc7\u7701\u7565\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6765\u5b9e\u73b0\u81ea\u7136\u5bf9\u6570\u7684\u529f\u80fd\u3002\u6b64\u5916\uff0c<strong><code>numpy<\/code>\u5e93\u4e2d\u7684<code>log<\/code>\u51fd\u6570\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u6570\u7ec4\u7684\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97<\/strong>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u8fd9\u4e9b\u5e93\u6765\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff0c\u5e76\u8ba8\u8bba\u5b83\u4eec\u5404\u81ea\u7684\u4f7f\u7528\u573a\u666f\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001MATH\u5e93\u4e2d\u7684LOG\u51fd\u6570<\/h2>\n<\/p>\n<p><p>Python\u7684<code>math<\/code>\u5e93\u662f\u4e00\u4e2a\u5185\u5efa\u5e93\uff0c\u4e13\u95e8\u63d0\u4f9b\u5404\u79cd\u6570\u5b66\u51fd\u6570\u3002\u8981\u4f7f\u7528<code>math.log<\/code>\u51fd\u6570\uff0c\u4f60\u9700\u8981\u5148\u5bfc\u5165<code>math<\/code>\u5e93\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>result = math.log(10)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>math.log(10)<\/code>\u8ba1\u7b97\u7684\u662f\u4ee5e\u4e3a\u5e9510\u7684\u81ea\u7136\u5bf9\u6570\u3002<strong>\u4f7f\u7528<code>math.log<\/code>\u51fd\u6570\u7684\u4e00\u4e2a\u597d\u5904\u662f\u5b83\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u5904\u7406\u5355\u4e2a\u6570\u503c\u7684\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97\u3002<\/strong>\u7136\u800c\uff0c<code>math<\/code>\u5e93\u53ea\u652f\u6301\u6807\u91cf\u8ba1\u7b97\uff0c\u5982\u679c\u4f60\u9700\u8981\u5bf9\u6570\u7ec4\u8fdb\u884c\u6279\u91cf\u8ba1\u7b97\uff0c\u5219\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>LOG\u51fd\u6570\u7684\u53c2\u6570<\/h3>\n<\/p>\n<p><p><code>math.log<\/code>\u51fd\u6570\u8fd8\u53ef\u4ee5\u63a5\u53d7\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u6307\u5b9a\u8ba1\u7b97\u5bf9\u6570\u7684\u5e95\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8ba1\u7b97\u4ee52\u4e3a\u5e95\u7684\u5bf9\u6570<\/p>\n<p>result_base2 = math.log(10, 2)<\/p>\n<p>print(result_base2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>math.log(10, 2)<\/code>\u8ba1\u7b97\u7684\u662f\u4ee52\u4e3a\u5e9510\u7684\u5bf9\u6570\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>math.log<\/code>\u51fd\u6570\u8ba1\u7b97\u7684\u662f\u81ea\u7136\u5bf9\u6570\uff08\u5373\u5e95\u6570\u4e3ae\uff09\uff0c\u5982\u679c\u9700\u8981\u5176\u4ed6\u5e95\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6307\u5b9a\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001NUMPY\u5e93\u4e2d\u7684LOG\u51fd\u6570<\/h2>\n<\/p>\n<p><p><code>numpy<\/code>\u5e93\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u5bf9\u6570\u7ec4\u8fdb\u884c\u6279\u91cf\u8ba1\u7b97\u7684\u80fd\u529b\u3002<code>numpy.log<\/code>\u51fd\u6570\u53ef\u4ee5\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\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>\u521b\u5efa\u4e00\u4e2a\u6570\u7ec4<\/strong><\/h2>\n<p>array = np.array([1, 2, 3, 10])<\/p>\n<h2><strong>\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u81ea\u7136\u5bf9\u6570<\/strong><\/h2>\n<p>log_array = np.log(array)<\/p>\n<p>print(log_array)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>np.log(array)<\/code>\u5c06\u8ba1\u7b97\u6570\u7ec4<code>array<\/code>\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u81ea\u7136\u5bf9\u6570\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u65b0\u6570\u7ec4\u3002<strong><code>numpy<\/code>\u5e93\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u96c6\uff0c\u5c24\u5176\u662f\u5728\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u9886\u57df\u3002<\/strong><\/p>\n<\/p>\n<p><h3>NUMPY\u5e93\u7684\u4f18\u52bf<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>numpy.log<\/code>\u7684\u4e3b\u8981\u4f18\u52bf\u5728\u4e8e\u5176\u5bf9\u6570\u7ec4\u548c\u77e9\u9635\u7684\u652f\u6301\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5728\u5904\u7406\u5927\u6570\u636e\u96c6\u65f6\u6548\u7387\u66f4\u9ad8\u3002\u6b64\u5916\uff0c<code>numpy<\/code>\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5176\u4ed6\u6570\u5b66\u51fd\u6570\uff0c\u53ef\u4ee5\u4e0e<code>log<\/code>\u51fd\u6570\u7ed3\u5408\u4f7f\u7528\uff0c\u8fdb\u884c\u590d\u6742\u7684\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001SYMPY\u5e93\u4e2d\u7684\u81ea\u7136\u5bf9\u6570<\/h2>\n<\/p>\n<p><p><code>sympy<\/code>\u5e93\u662fPython\u4e2d\u7684\u4e00\u4e2a\u7b26\u53f7\u6570\u5b66\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u7b26\u53f7\u8ba1\u7b97\u3002\u4e0e<code>math<\/code>\u548c<code>numpy<\/code>\u4e0d\u540c\uff0c<code>sympy<\/code>\u53ef\u4ee5\u5904\u7406\u7b26\u53f7\u8868\u8fbe\u5f0f\u4e2d\u7684\u5bf9\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import symbols, log<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x = symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7b26\u53f7\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expr = log(x)<\/p>\n<h2><strong>\u8ba1\u7b97\u8868\u8fbe\u5f0f\u5728x=10\u65f6\u7684\u503c<\/strong><\/h2>\n<p>value = expr.subs(x, 10)<\/p>\n<p>print(value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>sympy<\/code>\u5e93\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u7b26\u53f7\u8868\u8fbe\u5f0f<code>log(x)<\/code>\uff0c\u7136\u540e\u5728<code>x=10<\/code>\u65f6\u8fdb\u884c\u6c42\u503c\u3002<strong><code>sympy<\/code>\u5e93\u975e\u5e38\u9002\u5408\u5904\u7406\u7b26\u53f7\u8ba1\u7b97\u548c\u4ee3\u6570\u64cd\u4f5c\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5904\u7406\u4e0d\u786e\u5b9a\u7684\u7b26\u53f7\u53d8\u91cf\u65f6\u3002<\/strong><\/p>\n<\/p>\n<p><h3>SYMPY\u7684\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p><code>sympy<\/code>\u5e93\u7684\u4e3b\u8981\u5e94\u7528\u573a\u666f\u5728\u4e8e\u7b26\u53f7\u8ba1\u7b97\u548c\u4ee3\u6570\u64cd\u4f5c\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u6c42\u89e3\u65b9\u7a0b\u3001\u5fae\u79ef\u5206\u3001\u77e9\u9635\u8fd0\u7b97\u7b49\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u7b26\u53f7\u63a8\u5bfc\u548c\u7b80\u5316\u8868\u8fbe\u5f0f\u7684\u60c5\u51b5\u4e0b\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u81ea\u7136\u5bf9\u6570\u7684\u5e94\u7528\u573a\u666f<\/h2>\n<\/p>\n<p><p>\u81ea\u7136\u5bf9\u6570\u5728\u5f88\u591a\u79d1\u5b66\u548c\u5de5\u7a0b\u9886\u57df\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\uff1a<\/p>\n<\/p>\n<p><h3>1\u3001\u6307\u6570\u589e\u957f\u548c\u8870\u51cf<\/h3>\n<\/p>\n<p><p>\u5728\u81ea\u7136\u754c\u548c\u7ecf\u6d4e\u5b66\u4e2d\uff0c\u5f88\u591a\u73b0\u8c61\u90fd\u53ef\u4ee5\u7528\u6307\u6570\u589e\u957f\u6216\u8870\u51cf\u6a21\u578b\u6765\u63cf\u8ff0\u3002\u81ea\u7136\u5bf9\u6570\u5e38\u7528\u4e8e\u8fd9\u4e9b\u6a21\u578b\u7684\u53c2\u6570\u4f30\u8ba1\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u4fe1\u606f\u71b5\u548c\u4fe1\u606f\u8bba<\/h3>\n<\/p>\n<p><p>\u5728\u4fe1\u606f\u8bba\u4e2d\uff0c\u81ea\u7136\u5bf9\u6570\u7528\u4e8e\u5b9a\u4e49\u4fe1\u606f\u71b5\uff0c\u8fd9\u662f\u8861\u91cf\u4fe1\u606f\u4e0d\u786e\u5b9a\u6027\u7684\u91cd\u8981\u6307\u6807\u3002\u4fe1\u606f\u71b5\u5728\u901a\u4fe1\u7406\u8bba\u548c\u6570\u636e\u538b\u7f29\u4e2d\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><h3>3\u3001\u91d1\u878d\u6570\u5b66<\/h3>\n<\/p>\n<p><p>\u5728\u91d1\u878d\u6570\u5b66\u4e2d\uff0c\u81ea\u7136\u5bf9\u6570\u7528\u4e8e\u8ba1\u7b97\u8fde\u7eed\u590d\u5229\u548c\u671f\u6743\u5b9a\u4ef7\u6a21\u578b\u3002\u5b83\u662f\u91d1\u878d\u5de5\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><h3>4\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u548c\u6570\u636e\u79d1\u5b66<\/h3>\n<\/p>\n<p><p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u81ea\u7136\u5bf9\u6570\u7528\u4e8e\u635f\u5931\u51fd\u6570\u7684\u5b9a\u4e49\u548c\u4f18\u5316\u7b97\u6cd5\u7684\u63a8\u5bfc\u3002\u5b83\u662f\u8bb8\u591a\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u7684\u57fa\u7840\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u4f18\u5316\u5efa\u8bae<\/h2>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<p><h3>1\u3001\u8f93\u5165\u503c\u7684\u8303\u56f4<\/h3>\n<\/p>\n<p><p>\u81ea\u7136\u5bf9\u6570\u51fd\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\u5927\u4e8e\u96f6\u3002\u5426\u5219\uff0c\u5c06\u4f1a\u5f15\u53d1\u6570\u5b66\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u6570\u503c\u7cbe\u5ea6<\/h3>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u6570\u503c\u8ba1\u7b97\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u7cbe\u5ea6\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u975e\u5e38\u5c0f\u6216\u975e\u5e38\u5927\u7684\u6570\u503c\u65f6\u3002\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u6d6e\u70b9\u6570\u7cbe\u5ea6\u6216\u4f7f\u7528\u79d1\u5b66\u8ba1\u7b97\u5e93\u6765\u63d0\u9ad8\u7cbe\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>3\u3001\u6027\u80fd\u4f18\u5316<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u96c6\u7684\u81ea\u7136\u5bf9\u6570\u8ba1\u7b97\uff0c\u5efa\u8bae\u4f7f\u7528<code>numpy<\/code>\u5e93\uff0c\u56e0\u4e3a\u5b83\u5e95\u5c42\u57fa\u4e8eC\u8bed\u8a00\u5b9e\u73b0\uff0c\u8ba1\u7b97\u6548\u7387\u66f4\u9ad8\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u901a\u8fc7\u5e76\u884c\u8ba1\u7b97\u548c\u5411\u91cf\u5316\u6280\u672f\u8fdb\u4e00\u6b65\u4f18\u5316\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u603b\u4e4b\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff0c\u4ece\u7b80\u5355\u7684<code>math<\/code>\u5e93\u5230\u5f3a\u5927\u7684<code>numpy<\/code>\u548c<code>sympy<\/code>\u5e93\uff0c\u6bcf\u4e2a\u5e93\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u52bf\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u4ee5\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u548c\u7ed3\u679c\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>log<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u3002\u8c03\u7528<code>math.log(x)<\/code>\u65f6\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u9ed8\u8ba4\u8fd4\u56de\u7684\u662f\u4ee5e\u4e3a\u5e95\u7684\u81ea\u7136\u5bf9\u6570\u3002\u4f8b\u5982\uff0c\u8ba1\u7b972\u7684\u81ea\u7136\u5bf9\u6570\u53ef\u4ee5\u4f7f\u7528<code>math.log(2)<\/code>\u3002<\/p>\n<p><strong>\u4f7f\u7528NumPy\u5e93\uff0c\u5982\u4f55\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u5728\u8fdb\u884c\u79d1\u5b66\u8ba1\u7b97\uff0cNumPy\u5e93\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.log(x)<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u81ea\u7136\u5bf9\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u5904\u7406\u6807\u91cf\u548c\u6570\u7ec4\uff0c\u540c\u65f6\u8fd4\u56de\u4e0e\u8f93\u5165\u76f8\u540c\u5f62\u72b6\u7684\u6570\u7ec4\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u8d1f\u6570\u6216\u96f6\u7684\u81ea\u7136\u5bf9\u6570\uff1f<\/strong><br \/>\u8ba1\u7b97\u81ea\u7136\u5bf9\u6570\u65f6\uff0c\u8d1f\u6570\u548c\u96f6\u4f1a\u5f15\u53d1\u9519\u8bef\u3002\u5728\u4f7f\u7528<code>math.log<\/code>\u6216<code>numpy.log<\/code>\u51fd\u6570\u4e4b\u524d\uff0c\u5e94\u786e\u4fdd\u8f93\u5165\u503c\u5927\u4e8e\u96f6\u3002\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u5224\u65ad\u6765\u5904\u7406\u8fd9\u4e9b\u60c5\u51b5\uff0c\u786e\u4fdd\u8f93\u5165\u503c\u6709\u6548\uff0c\u4ece\u800c\u907f\u514d\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u81ea\u7136\u5bf9\u6570\u51fd\u6570\u53ef\u4ee5\u901a\u8fc7math\u5e93\u4e2d\u7684log\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u5177\u4f53\u6765\u8bf4\uff0cmath.log(x)\u53ef\u4ee5\u7528\u6765 [&hellip;]","protected":false},"author":3,"featured_media":982593,"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\/982589"}],"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=982589"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/982589\/revisions"}],"predecessor-version":[{"id":982596,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/982589\/revisions\/982596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/982593"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=982589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=982589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=982589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}