{"id":1187491,"date":"2025-01-15T20:06:11","date_gmt":"2025-01-15T12:06:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1187491.html"},"modified":"2025-01-15T20:06:15","modified_gmt":"2025-01-15T12:06:15","slug":"python%e5%a6%82%e4%bd%95%e8%a1%a8%e7%a4%ba%e6%8c%87%e6%95%b0%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1187491.html","title":{"rendered":"python\u5982\u4f55\u8868\u793a\u6307\u6570\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25140037\/600d0ef9-df6c-44ff-a875-d33417047119.webp\" alt=\"python\u5982\u4f55\u8868\u793a\u6307\u6570\u51fd\u6570\" \/><\/p>\n<p><p> <strong>Python\u8868\u793a\u6307\u6570\u51fd\u6570\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684\u5e42\u8fd0\u7b97\u7b26\u3001math\u6a21\u5757\u4e2d\u7684exp\u51fd\u6570\u548cnumpy\u6a21\u5757\u4e2d\u7684exp\u51fd\u6570\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u5185\u7f6e\u7684\u5e42\u8fd0\u7b97\u7b26<\/strong>\u662f\u6700\u5e38\u89c1\u548c\u76f4\u63a5\u7684\u65b9\u5f0f\uff0c\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5176\u7528\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u5185\u7f6e\u7684\u5e42\u8fd0\u7b97\u7b26<\/strong>\uff1a\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u53cc\u661f\u53f7<code>&lt;strong&gt;<\/code>\u8868\u793a\u6307\u6570\u8fd0\u7b97\u3002\u4f8b\u5982\uff0c<code>2&lt;\/strong&gt;3<\/code>\u8868\u793a2\u7684\u4e09\u6b21\u65b9\uff0c\u7ed3\u679c\u662f8\u3002\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5355\u6613\u61c2\uff0c\u9002\u7528\u4e8e\u57fa\u672c\u7684\u6307\u6570\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5185\u7f6e\u7684\u5e42\u8fd0\u7b97\u7b26\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8ba1\u7b972\u76843\u6b21\u65b9<\/p>\n<p>result = 2  3<\/p>\n<p>print(result)  # \u8f93\u51fa: 8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u7b80\u5355\u7684\u6307\u6570\u8fd0\u7b97\uff0c\u4f46\u5982\u679c\u9700\u8981\u66f4\u590d\u6742\u7684\u6570\u5b66\u8ba1\u7b97\uff0c\u7279\u522b\u662f\u6d89\u53ca\u81ea\u7136\u6307\u6570\u51fd\u6570\u65f6\uff0c\u4f7f\u7528<code>math<\/code>\u6a21\u5757\u6216<code>numpy<\/code>\u6a21\u5757\u4f1a\u66f4\u52a0\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001MATH\u6a21\u5757<\/h3>\n<\/p>\n<p><p>Python\u7684<code>math<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u6570\u5b66\u51fd\u6570\uff0c\u5176\u4e2d\u5305\u62ec<code>exp<\/code>\u51fd\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97e\u7684\u6307\u6570\u5e42\u3002<\/p>\n<\/p>\n<p><h4>1\u3001math.exp\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>math.exp(x)<\/code>\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97e\u7684x\u6b21\u65b9\uff0c\u5176\u4e2de\u662f\u81ea\u7136\u5bf9\u6570\u7684\u5e95\u6570\uff0c\u7ea6\u7b49\u4e8e2.71828\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u8ba1\u7b97e\u76842\u6b21\u65b9<\/strong><\/h2>\n<p>result = math.exp(2)<\/p>\n<p>print(result)  # \u8f93\u51fa: 7.3890560989306495<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001math.pow\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u9664\u4e86<code>exp<\/code>\u51fd\u6570\u5916\uff0c<code>math<\/code>\u6a21\u5757\u8fd8\u63d0\u4f9b\u4e86<code>pow<\/code>\u51fd\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97\u4efb\u610f\u6570\u7684\u5e42\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<h2><strong>\u8ba1\u7b972\u76843\u6b21\u65b9<\/strong><\/h2>\n<p>result = math.pow(2, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa: 8.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001NUMPY\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u6d89\u53ca\u5927\u91cf\u6570\u503c\u8ba1\u7b97\u7684\u60c5\u51b5\uff0c<code>numpy<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u591a\u9ad8\u6548\u7684\u6570\u5b66\u51fd\u6570\uff0c\u5305\u62ec<code>numpy.exp<\/code>\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h4>1\u3001numpy.exp\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>numpy.exp(x)<\/code>\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97e\u7684\u6bcf\u4e2a\u5143\u7d20\u7684\u6307\u6570\u5e42\uff0c\u9002\u7528\u4e8e\u6570\u7ec4\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\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\u6570\u7ec4<\/strong><\/h2>\n<p>arr = np.array([1, 2, 3])<\/p>\n<h2><strong>\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u6307\u6570\u5e42<\/strong><\/h2>\n<p>result = np.exp(arr)<\/p>\n<p>print(result)  # \u8f93\u51fa: [ 2.71828183  7.3890561  20.08553692]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001numpy.power\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>numpy<\/code>\u6a21\u5757\u8fd8\u63d0\u4f9b\u4e86<code>power<\/code>\u51fd\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u5e42\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\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\u6570\u7ec4<\/strong><\/h2>\n<p>arr = np.array([1, 2, 3])<\/p>\n<h2><strong>\u8ba1\u7b97\u6570\u7ec4\u4e2d\u6bcf\u4e2a\u5143\u7d20\u76843\u6b21\u65b9<\/strong><\/h2>\n<p>result = np.power(arr, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa: [ 1  8 27]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001SYMPY\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>SymPy<\/code>\u662f\u4e00\u4e2aPython\u7684\u7b26\u53f7\u6570\u5b66\u5e93\uff0c\u9002\u7528\u4e8e\u7b26\u53f7\u8ba1\u7b97\u548c\u6570\u5b66\u516c\u5f0f\u7684\u8868\u793a\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7b26\u53f7\u8868\u8fbe\u5f0f<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>SymPy<\/code>\u53ef\u4ee5\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf\u5e76\u8fdb\u884c\u6307\u6570\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x = sp.symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u8868\u793a\u6307\u6570\u51fd\u6570<\/strong><\/h2>\n<p>expr = sp.exp(x)<\/p>\n<p>print(expr)  # \u8f93\u51fa: exp(x)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6c42\u5bfc\u548c\u79ef\u5206<\/h4>\n<\/p>\n<p><p><code>SymPy<\/code>\u53ef\u4ee5\u5bf9\u7b26\u53f7\u8868\u8fbe\u5f0f\u8fdb\u884c\u6c42\u5bfc\u548c\u79ef\u5206\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x = sp.symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u8868\u793a\u6307\u6570\u51fd\u6570<\/strong><\/h2>\n<p>expr = sp.exp(x)<\/p>\n<h2><strong>\u6c42\u5bfc<\/strong><\/h2>\n<p>derivative = sp.diff(expr, x)<\/p>\n<p>print(derivative)  # \u8f93\u51fa: exp(x)<\/p>\n<h2><strong>\u79ef\u5206<\/strong><\/h2>\n<p>integral = sp.integrate(expr, x)<\/p>\n<p>print(integral)  # \u8f93\u51fa: exp(x)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001SCIPY\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>SciPy<\/code>\u662f\u4e00\u4e2a\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684Python\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u9ad8\u7ea7\u6570\u5b66\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h4>1\u3001scipy.special.expit\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>SciPy<\/code>\u7684<code>special<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u7279\u6b8a\u51fd\u6570\uff0c\u5305\u62ec<code>expit<\/code>\u51fd\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97\u903b\u8f91\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from scipy.special import expit<\/p>\n<h2><strong>\u8ba1\u7b97\u903b\u8f91\u51fd\u6570\u503c<\/strong><\/h2>\n<p>result = expit(2)<\/p>\n<p>print(result)  # \u8f93\u51fa: 0.8807970779778823<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001scipy.optimize.curve_fit\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>SciPy<\/code>\u7684<code>optimize<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u4f18\u5316\u548c\u62df\u5408\u51fd\u6570\uff0c\u5305\u62ec<code>curve_fit<\/code>\u51fd\u6570\uff0c\u7528\u4e8e\u6307\u6570\u51fd\u6570\u62df\u5408\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>from scipy.optimize import curve_fit<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u5b9a\u4e49\u6307\u6570\u51fd\u6570<\/strong><\/h2>\n<p>def exp_func(x, a, b):<\/p>\n<p>    return a * np.exp(b * x)<\/p>\n<h2><strong>\u751f\u6210\u6570\u636e<\/strong><\/h2>\n<p>x_data = np.linspace(0, 4, 50)<\/p>\n<p>y_data = exp_func(x_data, 2, 1.5) + 0.5 * np.random.normal(size=len(x_data))<\/p>\n<h2><strong>\u62df\u5408\u6570\u636e<\/strong><\/h2>\n<p>params, params_covariance = curve_fit(exp_func, x_data, y_data, p0=[2, 1.5])<\/p>\n<h2><strong>\u7ed8\u5236\u7ed3\u679c<\/strong><\/h2>\n<p>plt.scatter(x_data, y_data, label=&#39;Data&#39;)<\/p>\n<p>plt.plot(x_data, exp_func(x_data, params[0], params[1]), label=&#39;Fitted function&#39;, color=&#39;red&#39;)<\/p>\n<p>plt.legend()<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5176\u5b83\u5e38\u89c1\u7684\u6307\u6570\u51fd\u6570\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>1\u3001\u91d1\u878d\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u5728\u91d1\u878d\u8ba1\u7b97\u4e2d\u6709\u5e7f\u6cdb\u5e94\u7528\uff0c\u5982\u8ba1\u7b97\u590d\u5229\u3001\u503a\u5238\u5b9a\u4ef7\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8ba1\u7b97\u590d\u5229<\/p>\n<p>principal = 1000  # \u672c\u91d1<\/p>\n<p>rate = 0.05  # \u5e74\u5229\u7387<\/p>\n<p>time = 10  # \u65f6\u95f4\uff08\u5e74\uff09<\/p>\n<h2><strong>\u8ba1\u7b9710\u5e74\u540e\u7684\u672c\u606f\u548c<\/strong><\/h2>\n<p>amount = principal * (1 + rate)  time<\/p>\n<p>print(amount)  # \u8f93\u51fa: 1628.8946267774415<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4fe1\u53f7\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u5728\u4fe1\u53f7\u5904\u7406\u4e2d\u7684\u5e94\u7528\u5305\u62ec\u6ee4\u6ce2\u5668\u8bbe\u8ba1\u3001\u65f6\u57df\u5206\u6790\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\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>\u751f\u6210\u4fe1\u53f7<\/strong><\/h2>\n<p>t = np.linspace(0, 1, 500)<\/p>\n<p>signal = np.exp(-t) * np.sin(2 * np.pi * 5 * t)<\/p>\n<h2><strong>\u7ed8\u5236\u4fe1\u53f7<\/strong><\/h2>\n<p>plt.plot(t, signal)<\/p>\n<p>plt.xlabel(&#39;Time [s]&#39;)<\/p>\n<p>plt.ylabel(&#39;Amplitude&#39;)<\/p>\n<p>plt.title(&#39;Damped Sine Wave&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a><\/h4>\n<\/p>\n<p><p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u6307\u6570\u51fd\u6570\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6fc0\u6d3b\u51fd\u6570\u3001\u635f\u5931\u51fd\u6570\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u5b9a\u4e49sigmoid\u6fc0\u6d3b\u51fd\u6570<\/strong><\/h2>\n<p>def sigmoid(x):<\/p>\n<p>    return 1 \/ (1 + np.exp(-x))<\/p>\n<h2><strong>\u751f\u6210\u6570\u636e<\/strong><\/h2>\n<p>x = np.linspace(-10, 10, 100)<\/p>\n<p>y = sigmoid(x)<\/p>\n<h2><strong>\u7ed8\u5236\u7ed3\u679c<\/strong><\/h2>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>plt.plot(x, y)<\/p>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;sigmoid(x)&#39;)<\/p>\n<p>plt.title(&#39;Sigmoid Activation Function&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u6307\u6570\u51fd\u6570\u7684\u6570\u5b66\u6027\u8d28\u548c\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001\u6307\u6570\u51fd\u6570\u7684\u57fa\u672c\u6027\u8d28<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u5177\u6709\u4ee5\u4e0b\u57fa\u672c\u6027\u8d28\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u8fde\u7eed\u6027<\/strong>\uff1a\u6307\u6570\u51fd\u6570\u5728\u6574\u4e2a\u5b9e\u6570\u57df\u4e0a\u662f\u8fde\u7eed\u7684\u3002<\/li>\n<li><strong>\u5355\u8c03\u6027<\/strong>\uff1a\u5bf9\u4e8ea &gt; 1\uff0c\u51fd\u6570f(x) = a^x\u662f\u5355\u8c03\u9012\u589e\u7684\uff1b\u5bf9\u4e8e0 &lt; a &lt; 1\uff0c\u51fd\u6570f(x) = a^x\u662f\u5355\u8c03\u9012\u51cf\u7684\u3002<\/li>\n<li><strong>\u975e\u8d1f\u6027<\/strong>\uff1a\u6307\u6570\u51fd\u6570\u7684\u503c\u59cb\u7ec8\u4e3a\u6b63\u6570\uff0c\u4e0d\u4f1a\u53d8\u4e3a\u8d1f\u6570\u6216\u96f6\u3002<\/li>\n<\/ul>\n<p><h4>2\u3001\u6307\u6570\u51fd\u6570\u7684\u5bfc\u6570\u548c\u79ef\u5206<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u7684\u5bfc\u6570\u548c\u79ef\u5206\u5177\u6709\u7b80\u5355\u7684\u5f62\u5f0f\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u51fd\u6570f(x) = e^x\uff0c\u5176\u5bfc\u6570\u548c\u79ef\u5206\u5206\u522b\u4e3a\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5bfc\u6570\uff1af&#39;(x) = e^x<\/li>\n<li>\u79ef\u5206\uff1a\u222be^x dx = e^x + C<\/li>\n<\/ul>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sympy as sp<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x = sp.symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u8868\u793a\u6307\u6570\u51fd\u6570<\/strong><\/h2>\n<p>expr = sp.exp(x)<\/p>\n<h2><strong>\u6c42\u5bfc<\/strong><\/h2>\n<p>derivative = sp.diff(expr, x)<\/p>\n<p>print(derivative)  # \u8f93\u51fa: exp(x)<\/p>\n<h2><strong>\u79ef\u5206<\/strong><\/h2>\n<p>integral = sp.integrate(expr, x)<\/p>\n<p>print(integral)  # \u8f93\u51fa: exp(x) + C<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u6307\u6570\u51fd\u6570\u5728\u5b9e\u9645\u95ee\u9898\u4e2d\u7684\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001\u4eba\u53e3\u589e\u957f\u6a21\u578b<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u5e38\u7528\u4e8e\u63cf\u8ff0\u4eba\u53e3\u589e\u957f\u6a21\u578b\u3002\u5728\u5047\u8bbe\u4eba\u53e3\u4ee5\u56fa\u5b9a\u7684\u6bd4\u4f8b\u589e\u957f\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6307\u6570\u51fd\u6570\u6765\u9884\u6d4b\u672a\u6765\u7684\u4eba\u53e3\u6570\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u521d\u59cb\u4eba\u53e3\u3001\u589e\u957f\u7387\u548c\u65f6\u95f4<\/p>\n<p>initial_population = 1000<\/p>\n<p>growth_rate = 0.02<\/p>\n<p>time = 10<\/p>\n<h2><strong>\u8ba1\u7b9710\u5e74\u540e\u7684\u4eba\u53e3\u6570\u91cf<\/strong><\/h2>\n<p>future_population = initial_population * np.exp(growth_rate * time)<\/p>\n<p>print(future_population)  # \u8f93\u51fa: 1221.4027581601695<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u653e\u5c04\u6027\u8870\u53d8<\/h4>\n<\/p>\n<p><p>\u653e\u5c04\u6027\u8870\u53d8\u8fc7\u7a0b\u53ef\u4ee5\u7528\u6307\u6570\u51fd\u6570\u63cf\u8ff0\u3002\u5047\u8bbe\u653e\u5c04\u6027\u7269\u8d28\u4ee5\u56fa\u5b9a\u7684\u8870\u53d8\u7387\u8870\u51cf\uff0c\u53ef\u4ee5\u4f7f\u7528\u6307\u6570\u51fd\u6570\u8ba1\u7b97\u5269\u4f59\u7684\u653e\u5c04\u6027\u7269\u8d28\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u521d\u59cb\u7269\u8d28\u91cf\u3001\u8870\u53d8\u7387\u548c\u65f6\u95f4<\/p>\n<p>initial_amount = 100<\/p>\n<p>decay_rate = 0.03<\/p>\n<p>time = 5<\/p>\n<h2><strong>\u8ba1\u7b975\u5e74\u540e\u5269\u4f59\u7684\u7269\u8d28\u91cf<\/strong><\/h2>\n<p>rem<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ning_amount = initial_amount * np.exp(-decay_rate * time)<\/p>\n<p>print(remaining_amount)  # \u8f93\u51fa: 86.07079764250578<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u6307\u6570\u51fd\u6570\u7684\u6570\u503c\u8ba1\u7b97\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001\u6cf0\u52d2\u7ea7\u6570\u5c55\u5f00<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u53ef\u4ee5\u901a\u8fc7\u6cf0\u52d2\u7ea7\u6570\u5c55\u5f00\u8fdb\u884c\u8fd1\u4f3c\u8ba1\u7b97\u3002\u5bf9\u4e8e\u51fd\u6570f(x) = e^x\uff0c\u5176\u6cf0\u52d2\u7ea7\u6570\u5c55\u5f00\u5f0f\u4e3a\uff1a<\/p>\n<p>e^x = 1 + x + x^2\/2! + x^3\/3! + &#8230;<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def exp_taylor(x, n):<\/p>\n<p>    result = 1<\/p>\n<p>    term = 1<\/p>\n<p>    for i in range(1, n + 1):<\/p>\n<p>        term *= x \/ i<\/p>\n<p>        result += term<\/p>\n<p>    return result<\/p>\n<h2><strong>\u8ba1\u7b97e\u76842\u6b21\u65b9\uff0c\u4f7f\u752810\u9636\u6cf0\u52d2\u7ea7\u6570\u5c55\u5f00<\/strong><\/h2>\n<p>approximation = exp_taylor(2, 10)<\/p>\n<p>print(approximation)  # \u8f93\u51fa: 7.388994708994708<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6570\u503c\u79ef\u5206\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u7684\u6570\u503c\u79ef\u5206\u53ef\u4ee5\u901a\u8fc7\u6570\u503c\u79ef\u5206\u65b9\u6cd5\u8fdb\u884c\u8ba1\u7b97\uff0c\u5982\u68af\u5f62\u6cd5\u3001\u8f9b\u666e\u68ee\u6cd5\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>from scipy.integrate import quad<\/p>\n<h2><strong>\u5b9a\u4e49\u88ab\u79ef\u51fd\u6570<\/strong><\/h2>\n<p>def integrand(x):<\/p>\n<p>    return np.exp(x)<\/p>\n<h2><strong>\u6570\u503c\u79ef\u5206<\/strong><\/h2>\n<p>integral, error = quad(integrand, 0, 1)<\/p>\n<p>print(integral)  # \u8f93\u51fa: 1.7182818284590453<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e5d\u3001\u6307\u6570\u51fd\u6570\u5728\u4e0d\u540c\u9886\u57df\u7684\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001\u751f\u7269\u5b66<\/h4>\n<\/p>\n<p><p>\u5728\u751f\u7269\u5b66\u4e2d\uff0c\u6307\u6570\u51fd\u6570\u5e38\u7528\u4e8e\u63cf\u8ff0\u7ec6\u80de\u5206\u88c2\u3001\u75c5\u6bd2\u4f20\u64ad\u7b49\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u521d\u59cb\u7ec6\u80de\u6570\u91cf\u3001\u5206\u88c2\u901f\u7387\u548c\u65f6\u95f4<\/p>\n<p>initial_cells = 1<\/p>\n<p>division_rate = 0.5<\/p>\n<p>time = 10<\/p>\n<h2><strong>\u8ba1\u7b9710\u5c0f\u65f6\u540e\u7684\u7ec6\u80de\u6570\u91cf<\/strong><\/h2>\n<p>final_cells = initial_cells * np.exp(division_rate * time)<\/p>\n<p>print(final_cells)  # \u8f93\u51fa: 148.4131591025766<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7269\u7406\u5b66<\/h4>\n<\/p>\n<p><p>\u5728\u7269\u7406\u5b66\u4e2d\uff0c\u6307\u6570\u51fd\u6570\u7528\u4e8e\u63cf\u8ff0\u7535\u5bb9\u653e\u7535\u3001\u7535\u611f\u7535\u6d41\u8870\u51cf\u7b49\u73b0\u8c61\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u521d\u59cb\u7535\u538b\u3001\u65f6\u95f4\u5e38\u6570\u548c\u65f6\u95f4<\/p>\n<p>initial_voltage = 5<\/p>\n<p>time_constant = 2<\/p>\n<p>time = 3<\/p>\n<h2><strong>\u8ba1\u7b973\u79d2\u540e\u7684\u7535\u538b<\/strong><\/h2>\n<p>voltage = initial_voltage * np.exp(-time \/ time_constant)<\/p>\n<p>print(voltage)  # \u8f93\u51fa: 2.231301601484298<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5341\u3001\u6307\u6570\u51fd\u6570\u7684\u56fe\u5f62\u8868\u793a<\/h3>\n<\/p>\n<p><p>\u6307\u6570\u51fd\u6570\u7684\u56fe\u5f62\u8868\u793a\u53ef\u4ee5\u5e2e\u52a9\u66f4\u597d\u5730\u7406\u89e3\u5176\u6027\u8d28\u548c\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7b80\u5355\u6307\u6570\u51fd\u6570\u56fe\u5f62<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\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>\u751f\u6210\u6570\u636e<\/strong><\/h2>\n<p>x = np.linspace(-2, 2, 100)<\/p>\n<p>y = np.exp(x)<\/p>\n<h2><strong>\u7ed8\u5236\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;exp(x)&#39;)<\/p>\n<p>plt.title(&#39;Exponential Function&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5bf9\u6570\u5c3a\u5ea6\u56fe\u5f62<\/h4>\n<\/p>\n<p><p>\u5728\u5bf9\u6570\u5c3a\u5ea6\u4e0a\u7ed8\u5236\u6307\u6570\u51fd\u6570\u56fe\u5f62\uff0c\u53ef\u4ee5\u76f4\u89c2\u5c55\u793a\u5176\u5feb\u901f\u589e\u957f\u7684\u7279\u70b9\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\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>\u751f\u6210\u6570\u636e<\/strong><\/h2>\n<p>x = np.linspace(0.1, 10, 100)<\/p>\n<p>y = np.exp(x)<\/p>\n<h2><strong>\u7ed8\u5236\u5bf9\u6570\u5c3a\u5ea6\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<p>plt.xscale(&#39;log&#39;)<\/p>\n<p>plt.yscale(&#39;log&#39;)<\/p>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;exp(x)&#39;)<\/p>\n<p>plt.title(&#39;Exponential Function (Log Scale)&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5341\u4e00\u3001\u6307\u6570\u51fd\u6570\u7684\u590d\u6742\u53d8\u79cd<\/h3>\n<\/p>\n<p><h4>1\u3001\u590d\u6307\u6570\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u590d\u6307\u6570\u51fd\u6570\u662f\u6307\u6570\u51fd\u6570\u5728\u590d\u6570\u57df\u4e0a\u7684\u6269\u5c55\uff0c\u5e38\u7528\u4e8e\u4fe1\u53f7\u5904\u7406\u548c\u91cf\u5b50\u529b\u5b66\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u5b9a\u4e49\u590d\u6570<\/strong><\/h2>\n<p>z = 1 + 2j<\/p>\n<h2><strong>\u8ba1\u7b97\u590d\u6307\u6570\u51fd\u6570<\/strong><\/h2>\n<p>result = np.exp(z)<\/p>\n<p>print(result)  # \u8f93\u51fa: (-1.1312043837568135+2.4717266720048188j)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u77e9\u9635\u6307\u6570\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u77e9\u9635\u6307\u6570\u51fd\u6570\u662f\u6307\u6570\u51fd\u6570\u5728\u77e9\u9635\u4e0a\u7684\u63a8\u5e7f\uff0c\u5e94\u7528\u4e8e\u63a7\u5236\u7406\u8bba\u548c\u91cf\u5b50\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>from scipy.linalg import expm<\/p>\n<h2><strong>\u5b9a\u4e49\u77e9\u9635<\/strong><\/h2>\n<p>A = np.array([[0, 1], [-1, 0]])<\/p>\n<h2><strong>\u8ba1\u7b97\u77e9\u9635\u6307\u6570\u51fd\u6570<\/strong><\/h2>\n<p>result = expm(A)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5341\u4e8c\u3001\u6307\u6570\u51fd\u6570\u7684\u9ad8\u7ea7\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u6307\u6570\u8870\u51cf\u5b66\u4e60\u7387<\/h4>\n<\/p>\n<p><p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u6307\u6570\u8870\u51cf\u5b66\u4e60\u7387\u7528\u4e8e\u52a8\u6001\u8c03\u6574\u5b66\u4e60\u7387\uff0c\u63d0\u5347\u6a21\u578b\u8bad\u7ec3\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\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>\u5b9a\u4e49\u521d\u59cb\u5b66\u4e60\u7387\u3001\u8870\u51cf\u7387\u548c\u8bad\u7ec3\u8f6e\u6570<\/strong><\/h2>\n<p>initial_lr = 0.1<\/p>\n<p>decay_rate = 0.1<\/p>\n<p>epochs = 100<\/p>\n<h2><strong>\u8ba1\u7b97\u6bcf\u8f6e\u7684\u5b66\u4e60\u7387<\/strong><\/h2>\n<p>lrs = initial_lr * np.exp(-decay_rate * np.arange(epochs))<\/p>\n<h2><strong>\u7ed8\u5236\u5b66\u4e60\u7387\u66f2\u7ebf<\/strong><\/h2>\n<p>plt.plot(np.arange(epochs), lrs)<\/p>\n<p>plt.xlabel(&#39;Epoch&#39;)<\/p>\n<p>plt.ylabel(&#39;Learning Rate&#39;)<\/p>\n<p>plt.title(&#39;Exponential Decay Learning Rate&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6307\u6570\u5e73\u6ed1\u6cd5<\/h4>\n<\/p>\n<p><p>\u6307\u6570\u5e73\u6ed1\u6cd5\u662f\u4e00\u79cd\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u65b9\u6cd5\uff0c\u7528\u4e8e\u5e73\u6ed1\u6570\u636e\u548c\u9884\u6d4b\u672a\u6765\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u751f\u6210\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>data = pd.Series([10, 20, 15, 25, 30, 35, 40, 45, 50])<\/p>\n<h2><strong>\u5e94\u7528\u6307\u6570\u5e73\u6ed1<\/strong><\/h2>\n<p>alpha = 0.3<\/p>\n<p>smoothed_data = data.ewm(alpha=alpha).mean()<\/p>\n<h2><strong>\u7ed8\u5236\u7ed3\u679c<\/strong><\/h2>\n<p>data.plot(label=&#39;Original Data&#39;)<\/p>\n<p>smoothed_data.plot(label=&#39;Smoothed Data&#39;, linestyle=&#39;--&#39;)<\/p>\n<p>plt.legend()<\/p>\n<p>plt.title(&#39;Exponential Smoothing&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u5185\u5bb9\uff0c\u6211\u4eec\u5168\u9762\u4e86\u89e3\u4e86Python\u4e2d\u8868\u793a\u6307\u6570\u51fd\u6570\u7684\u5404\u79cd\u65b9\u5f0f\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002\u8fd9\u4e9b\u77e5\u8bc6\u4e0d\u4ec5\u5e2e\u52a9\u6211\u4eec\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u89e3\u51b3\u95ee\u9898\uff0c\u8fd8\u62d3\u5c55\u4e86\u6211\u4eec\u5bf9\u6307\u6570\u51fd\u6570\u7684\u7406\u89e3\u548c\u5e94\u7528\u8303\u56f4\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\u8ba1\u7b97\u6307\u6570\u51fd\u6570\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u8ba1\u7b97\u6307\u6570\u51fd\u6570\u7684\u65b9\u6cd5\u3002\u6700\u5e38\u7528\u7684\u662f\u4f7f\u7528\u5185\u7f6e\u7684<code>&lt;strong&gt;<\/code>\u8fd0\u7b97\u7b26\uff0c\u4f8b\u5982<code>2 &lt;\/strong&gt; 3<\/code>\u8868\u793a2\u76843\u6b21\u65b9\u3002\u6b64\u5916\uff0c<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>math.exp(x)<\/code>\u53ef\u4ee5\u7528\u6765\u8ba1\u7b97e\u7684x\u6b21\u65b9\uff0c<code>numpy<\/code>\u5e93\u4e5f\u63d0\u4f9b\u4e86<code>numpy.exp(x)<\/code>\uff0c\u9002\u5408\u4e8e\u5904\u7406\u6570\u7ec4\u6570\u636e\u3002<\/p>\n<p><strong>Python\u7684\u6307\u6570\u51fd\u6570\u4e0e\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u76f8\u6bd4\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><br \/>Python\u7684\u8bed\u6cd5\u7b80\u6d01\u6613\u8bfb\uff0c\u4f7f\u5f97\u8ba1\u7b97\u6307\u6570\u51fd\u6570\u975e\u5e38\u76f4\u89c2\u3002\u4e0e\u5176\u4ed6\u8bed\u8a00\u76f8\u6bd4\uff0cPython\u7684<code>math<\/code>\u6a21\u5757\u548c<code>numpy<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u5b66\u51fd\u6570\u652f\u6301\uff0c\u80fd\u591f\u65b9\u4fbf\u5730\u8fdb\u884c\u590d\u6742\u7684\u6570\u5b66\u8ba1\u7b97\u3002\u8fd9\u4e3a\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u6307\u6570\u51fd\u6570\u7684\u56fe\u5f62\uff1f<\/strong><br \/>\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u53ef\u4ee5\u8f7b\u677e\u7ed8\u5236\u6307\u6570\u51fd\u6570\u7684\u56fe\u5f62\u3002\u9996\u5148\uff0c\u901a\u8fc7<code>numpy<\/code>\u751f\u6210\u81ea\u53d8\u91cf\u6570\u7ec4\uff0c\u7136\u540e\u8ba1\u7b97\u5bf9\u5e94\u7684\u6307\u6570\u503c\uff0c\u6700\u540e\u4f7f\u7528<code>plt.plot()<\/code>\u6765\u7ed8\u5236\u56fe\u5f62\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7<code>plt.plot(x, np.exp(x))<\/code>\u6765\u7ed8\u5236e\u7684x\u6b21\u65b9\u7684\u56fe\u5f62\uff0c\u8fd9\u5bf9\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u548c\u51fd\u6570\u5206\u6790\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8868\u793a\u6307\u6570\u51fd\u6570\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684\u5e42\u8fd0\u7b97\u7b26\u3001math\u6a21\u5757\u4e2d\u7684exp\u51fd\u6570\u548cnumpy\u6a21\u5757\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":1187506,"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\/1187491"}],"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=1187491"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1187491\/revisions"}],"predecessor-version":[{"id":1187509,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1187491\/revisions\/1187509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1187506"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1187491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1187491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1187491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}