{"id":952900,"date":"2024-12-27T01:37:30","date_gmt":"2024-12-26T17:37:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/952900.html"},"modified":"2024-12-27T01:37:32","modified_gmt":"2024-12-26T17:37:32","slug":"python%e5%a6%82%e4%bd%95%e6%89%93%e5%87%basin","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/952900.html","title":{"rendered":"python\u5982\u4f55\u6253\u51fasin"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090600\/3b2a1749-333a-4cf4-9dab-b74353fedab9.webp\" alt=\"python\u5982\u4f55\u6253\u51fasin\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u6253\u51fasin\u51fd\u6570\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528math\u5e93\u3001\u4f7f\u7528numpy\u5e93\u3001\u5229\u7528matplotlib\u8fdb\u884c\u53ef\u89c6\u5316\u3002<\/strong>\u5728\u4e0b\u9762\u7684\u5185\u5bb9\u4e2d\uff0c\u6211\u5c06\u8be6\u7ec6\u89e3\u91ca\u8fd9\u4e09\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u4ee3\u7801\u793a\u4f8b\u6765\u5e2e\u52a9\u60a8\u7406\u89e3\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528sin\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528MATH\u5e93<\/p>\n<\/p>\n<p><p>Math\u5e93\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u6570\u5b66\u51fd\u6570\uff0c\u5305\u62ecsin\u51fd\u6570\u3002Math\u5e93\u7684sin\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5f27\u5ea6\u503c\uff0c\u5e76\u8fd4\u56de\u5176\u6b63\u5f26\u503c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5982\u4f55\u4f7f\u7528MATH\u5e93<\/li>\n<\/ol>\n<p><p>\u8981\u4f7f\u7528math\u5e93\u4e2d\u7684sin\u51fd\u6570\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165math\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u8ba1\u7b97\u4e00\u4e2a\u5f27\u5ea6\u7684sin\u503c<\/strong><\/h2>\n<p>angle_radian = math.pi \/ 2  # 90\u5ea6<\/p>\n<p>sin_value = math.sin(angle_radian)<\/p>\n<p>print(f&quot;sin({angle_radian}) = {sin_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u8ba1\u7b97\u4e8690\u5ea6\uff08\u03c0\/2\u5f27\u5ea6\uff09\u7684\u6b63\u5f26\u503c\u3002\u8bf7\u6ce8\u610f\uff0c<strong>math.sin()\u51fd\u6570\u4e2d\u7684\u53c2\u6570\u5fc5\u987b\u662f\u5f27\u5ea6\uff0c\u800c\u4e0d\u662f\u5ea6\u6570<\/strong>\u3002\u5982\u679c\u60a8\u6709\u4e00\u4e2a\u89d2\u5ea6\u7684\u503c\uff0c\u5e76\u4e14\u60f3\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u5f27\u5ea6\uff0c\u53ef\u4ee5\u4f7f\u7528math.radians()\u51fd\u6570\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6<\/li>\n<\/ol>\n<p><p>\u5982\u679c\u60a8\u5e0c\u671b\u8ba1\u7b97\u4e00\u4e2a\u89d2\u5ea6\u7684sin\u503c\uff0c\u53ef\u4ee5\u5148\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6<\/strong><\/h2>\n<p>angle_degree = 90<\/p>\n<p>angle_radian = math.radians(angle_degree)<\/p>\n<h2><strong>\u8ba1\u7b97sin\u503c<\/strong><\/h2>\n<p>sin_value = math.sin(angle_radian)<\/p>\n<p>print(f&quot;sin({angle_degree}\u00b0) = {sin_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528NUMPY\u5e93<\/p>\n<\/p>\n<p><p>Numpy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u5bf9\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\u7684\u652f\u6301\u4ee5\u53ca\u8bb8\u591a\u6570\u5b66\u51fd\u6570\uff0c\u5305\u62ecsin\u51fd\u6570\u3002\u4e0emath\u5e93\u4e0d\u540c\uff0cnumpy\u5e93\u4e2d\u7684sin\u51fd\u6570\u53ef\u4ee5\u5bf9\u6570\u7ec4\u8fdb\u884c\u64cd\u4f5c\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5728\u6570\u503c\u8ba1\u7b97\u4e2d\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5982\u4f55\u4f7f\u7528NUMPY\u5e93<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5numpy\u5e93\uff08\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff09\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528numpy\u5e93\u4e2d\u7684sin\u51fd\u6570\u6765\u8ba1\u7b97\u4e00\u4e2a\u6570\u7ec4\u4e2d\u6240\u6709\u5143\u7d20\u7684sin\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5f27\u5ea6\u7684\u6570\u7ec4<\/strong><\/h2>\n<p>angles_radian = np.array([0, np.pi \/ 4, np.pi \/ 2, np.pi])<\/p>\n<h2><strong>\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684sin\u503c<\/strong><\/h2>\n<p>sin_values = np.sin(angles_radian)<\/p>\n<p>print(f&quot;sin values: {sin_values}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5f27\u5ea6\u503c\u7684\u6570\u7ec4\uff0c\u5e76\u8ba1\u7b97\u4e86\u6bcf\u4e2a\u503c\u7684sin\u503c\u3002<strong>Numpy\u5e93\u7684\u597d\u5904\u5728\u4e8e\u5b83\u80fd\u591f\u5904\u7406\u591a\u7ef4\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\uff0c\u7b80\u5316\u4e86\u6279\u91cf\u8ba1\u7b97\u7684\u8fc7\u7a0b\u3002<\/strong><\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5c06\u89d2\u5ea6\u6570\u7ec4\u8f6c\u6362\u4e3a\u5f27\u5ea6<\/li>\n<\/ol>\n<p><p>\u540c\u6837\u5730\uff0c\u5982\u679c\u60a8\u6709\u4e00\u4e2a\u89d2\u5ea6\u6570\u7ec4\uff0c\u53ef\u4ee5\u4f7f\u7528numpy.radians()\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u5f27\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u89d2\u5ea6\u7684\u6570\u7ec4<\/strong><\/h2>\n<p>angles_degree = np.array([0, 45, 90, 180])<\/p>\n<h2><strong>\u5c06\u89d2\u5ea6\u6570\u7ec4\u8f6c\u6362\u4e3a\u5f27\u5ea6<\/strong><\/h2>\n<p>angles_radian = np.radians(angles_degree)<\/p>\n<h2><strong>\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684sin\u503c<\/strong><\/h2>\n<p>sin_values = np.sin(angles_radian)<\/p>\n<p>print(f&quot;sin values: {sin_values}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u5229\u7528MATPLOTLIB\u8fdb\u884c\u53ef\u89c6\u5316<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u975e\u5e38\u6d41\u884c\u7684\u7ed8\u56fe\u5e93\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u53ef\u89c6\u5316sin\u51fd\u6570\u7684\u56fe\u50cf\u3002\u8fd9\u5bf9\u4e8e\u7406\u89e3sin\u51fd\u6570\u7684\u6027\u8d28\u548c\u884c\u4e3a\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\u7ed8\u5236sin\u51fd\u6570\u56fe\u50cf<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5matplotlib\u5e93\uff08\u5982\u679c\u5c1a\u672a\u5b89\u88c5\uff09\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528matplotlib\u6765\u7ed8\u5236sin\u51fd\u6570\u7684\u56fe\u50cf\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5f27\u5ea6\u7684\u6570\u7ec4<\/strong><\/h2>\n<p>x = np.linspace(0, 2 * np.pi, 100)<\/p>\n<h2><strong>\u8ba1\u7b97\u6bcf\u4e2ax\u503c\u7684sin\u503c<\/strong><\/h2>\n<p>y = np.sin(x)<\/p>\n<h2><strong>\u7ed8\u5236sin\u51fd\u6570\u56fe\u50cf<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<p>plt.title(&#39;Sine Function&#39;)<\/p>\n<p>plt.xlabel(&#39;Radian&#39;)<\/p>\n<p>plt.ylabel(&#39;sin(x)&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528numpy.linspace()\u51fd\u6570\u521b\u5efa\u4e86\u4e00\u4e2a\u4ece0\u52302\u03c0\u7684\u5f27\u5ea6\u6570\u7ec4\uff0c\u5e76\u8ba1\u7b97\u4e86\u6bcf\u4e2ax\u503c\u7684sin\u503c\u3002\u7136\u540e\u4f7f\u7528matplotlib.pyplot.plot()\u51fd\u6570\u7ed8\u5236\u4e86sin\u51fd\u6570\u7684\u56fe\u50cf\u3002<strong>\u8fd9\u79cd\u53ef\u89c6\u5316\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7406\u89e3sin\u51fd\u6570\u7684\u5468\u671f\u6027\u548c\u632f\u8361\u7279\u6027\u3002<\/strong><\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u6dfb\u52a0\u66f4\u591a\u7684\u56fe\u50cf\u7ec6\u8282<\/li>\n<\/ol>\n<p><p>\u4e3a\u4e86\u8ba9\u56fe\u50cf\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u4e8e\u7406\u89e3\uff0c\u53ef\u4ee5\u6dfb\u52a0\u66f4\u591a\u7684\u7ec6\u8282\uff0c\u6bd4\u5982\u7f51\u683c\u7ebf\u3001\u56fe\u4f8b\u4ee5\u53ca\u66f4\u7cbe\u7ec6\u7684\u523b\u5ea6\u6807\u8bb0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u589e\u5f3a\u7248\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5f27\u5ea6\u7684\u6570\u7ec4<\/strong><\/h2>\n<p>x = np.linspace(0, 2 * np.pi, 100)<\/p>\n<h2><strong>\u8ba1\u7b97\u6bcf\u4e2ax\u503c\u7684sin\u503c<\/strong><\/h2>\n<p>y = np.sin(x)<\/p>\n<h2><strong>\u7ed8\u5236sin\u51fd\u6570\u56fe\u50cf<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 6))<\/p>\n<p>plt.plot(x, y, label=&#39;sin(x)&#39;, color=&#39;blue&#39;, linestyle=&#39;-&#39;)<\/p>\n<h2><strong>\u6dfb\u52a0cos\u51fd\u6570\u8fdb\u884c\u5bf9\u6bd4<\/strong><\/h2>\n<p>y_cos = np.cos(x)<\/p>\n<p>plt.plot(x, y_cos, label=&#39;cos(x)&#39;, color=&#39;red&#39;, linestyle=&#39;--&#39;)<\/p>\n<p>plt.title(&#39;Sine and Cosine Functions&#39;)<\/p>\n<p>plt.xlabel(&#39;Radian&#39;)<\/p>\n<p>plt.ylabel(&#39;Function Value&#39;)<\/p>\n<p>plt.xticks(np.arange(0, 2 * np.pi + np.pi\/4, np.pi\/4), <\/p>\n<p>           [&#39;0&#39;, &#39;\u03c0\/4&#39;, &#39;\u03c0\/2&#39;, &#39;3\u03c0\/4&#39;, &#39;\u03c0&#39;, &#39;5\u03c0\/4&#39;, &#39;3\u03c0\/2&#39;, &#39;7\u03c0\/4&#39;, &#39;2\u03c0&#39;])<\/p>\n<p>plt.yticks(np.arange(-1, 1.5, 0.5))<\/p>\n<p>plt.axhline(0, color=&#39;black&#39;, linewidth=0.5, linestyle=&#39;--&#39;)<\/p>\n<p>plt.axvline(np.pi\/2, color=&#39;green&#39;, linewidth=0.5, linestyle=&#39;--&#39;, label=&#39;\u03c0\/2&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.legend()<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u589e\u5f3a\u7248\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4e0d\u4ec5\u7ed8\u5236\u4e86sin\u51fd\u6570\u7684\u56fe\u50cf\uff0c\u8fd8\u7ed8\u5236\u4e86cos\u51fd\u6570\u8fdb\u884c\u5bf9\u6bd4\u3002\u6b64\u5916\uff0c\u6dfb\u52a0\u4e86\u56fe\u4f8b\u3001\u7f51\u683c\u7ebf\u3001\u6c34\u5e73\u548c\u5782\u76f4\u53c2\u8003\u7ebf\uff0c\u4ee5\u53ca\u7cbe\u7ec6\u7684\u523b\u5ea6\u6807\u8bb0\uff0c\u4ee5\u5e2e\u52a9\u66f4\u597d\u5730\u7406\u89e3\u51fd\u6570\u7684\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7math\u5e93\u548cnumpy\u5e93\u8f7b\u677e\u5730\u8ba1\u7b97sin\u51fd\u6570\u7684\u503c\u3002math\u5e93\u9002\u5408\u5904\u7406\u5355\u4e2a\u503c\uff0c\u800cnumpy\u5e93\u5219\u975e\u5e38\u9002\u5408\u6279\u91cf\u5904\u7406\u6570\u7ec4\u3002\u901a\u8fc7matplotlib\u5e93\uff0c\u60a8\u53ef\u4ee5\u76f4\u89c2\u5730\u53ef\u89c6\u5316sin\u51fd\u6570\u7684\u56fe\u50cf\uff0c\u4ece\u800c\u66f4\u597d\u5730\u7406\u89e3\u5176\u6570\u5b66\u6027\u8d28\u3002\u65e0\u8bba\u60a8\u662f\u8fdb\u884c\u79d1\u5b66\u8ba1\u7b97\u8fd8\u662f\u6570\u636e\u5206\u6790\uff0c\u8fd9\u4e9b\u5de5\u5177\u90fd\u80fd\u591f\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8ba1\u7b97\u6b63\u5f26\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u6765\u8ba1\u7b97\u6b63\u5f26\u503c\u3002\u9996\u5148\uff0c\u9700\u8981\u5bfc\u5165\u8be5\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>math.sin()<\/code>\u51fd\u6570\u3002\u8bf7\u6ce8\u610f\uff0c\u8f93\u5165\u53c2\u6570\u662f\u5f27\u5ea6\u800c\u975e\u89d2\u5ea6\uff0c\u56e0\u6b64\u5982\u679c\u60a8\u6709\u89d2\u5ea6\u503c\uff0c\u9700\u8981\u5148\u5c06\u5176\u8f6c\u6362\u4e3a\u5f27\u5ea6\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u5728Python\u4e2d\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u7ed8\u5236\u6b63\u5f26\u6ce2\uff1f<\/strong><br \/>\u9664\u4e86<code>math<\/code>\u6a21\u5757\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>numpy<\/code>\u548c<code>matplotlib<\/code>\u5e93\u6765\u7ed8\u5236\u6b63\u5f26\u6ce2\u3002<code>numpy<\/code>\u7528\u4e8e\u751f\u6210\u6570\u636e\u70b9\uff0c\u800c<code>matplotlib<\/code>\u5219\u7528\u4e8e\u7ed8\u56fe\u3002\u8fd9\u79cd\u7ec4\u5408\u53ef\u4ee5\u5e2e\u52a9\u60a8\u521b\u5efa\u7f8e\u89c2\u7684\u6b63\u5f26\u6ce2\u56fe\u5f62\uff0c\u4ee5\u4fbf\u4e8e\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u6b63\u5f26\u51fd\u6570\u7684\u7279\u6027\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u4ee5\u8ba1\u7b97\u6b63\u5f26\u503c\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u5c06\u89d2\u5ea6\u4e58\u4ee5<code>\u03c0\/180<\/code>\u6765\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\u3002\u5728Python\u4e2d\uff0c<code>math<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86<code>math.radians()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u89d2\u5ea6\u8f6c\u6362\u4e3a\u5f27\u5ea6\uff0c\u8fd9\u6837\u60a8\u5c31\u53ef\u4ee5\u65b9\u4fbf\u5730\u4f7f\u7528<code>math.sin()<\/code>\u6765\u8ba1\u7b97\u6b63\u5f26\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u6253\u51fasin\u51fd\u6570\u7684\u65b9\u6cd5\u4e3b\u8981\u6709\uff1a\u4f7f\u7528math\u5e93\u3001\u4f7f\u7528numpy\u5e93\u3001\u5229\u7528matplotlib\u8fdb\u884c\u53ef\u89c6\u5316 [&hellip;]","protected":false},"author":3,"featured_media":952906,"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\/952900"}],"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=952900"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/952900\/revisions"}],"predecessor-version":[{"id":952910,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/952900\/revisions\/952910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/952906"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=952900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=952900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=952900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}