{"id":970208,"date":"2024-12-27T05:24:03","date_gmt":"2024-12-26T21:24:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970208.html"},"modified":"2024-12-27T05:24:05","modified_gmt":"2024-12-26T21:24:05","slug":"python%e5%a6%82%e4%bd%95%e6%b1%82%e5%81%8f%e5%af%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/970208.html","title":{"rendered":"python\u5982\u4f55\u6c42\u504f\u5bfc"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24184123\/1849d987-9ae2-4771-912e-508e1675e262.webp\" alt=\"python\u5982\u4f55\u6c42\u504f\u5bfc\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u6c42\u504f\u5bfc\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7b26\u53f7\u6570\u5b66\u5e93\u5982SymPy\u3001\u81ea\u52a8\u5fae\u5206\u5e93\u5982Autograd\u3001\u4ee5\u53ca\u6570\u503c\u8ba1\u7b97\u5e93\u5982NumPy\u548cSciPy\u6765\u5b9e\u73b0\u3002SymPy\u53ef\u4ee5\u7528\u4e8e\u7b26\u53f7\u5fae\u5206\u3001Autograd\u9002\u5408\u81ea\u52a8\u5fae\u5206\uff0c\u800cNumPy\u548cSciPy\u5219\u901a\u8fc7\u6570\u503c\u65b9\u6cd5\u8fdb\u884c\u8fd1\u4f3c\u8ba1\u7b97\u3002<\/strong>\u5176\u4e2d\uff0c<strong>SymPy<\/strong>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf\u5e76\u5bf9\u5176\u8fdb\u884c\u5fae\u5206\u3002<strong>Autograd<\/strong>\u5219\u64c5\u957f\u5728\u9700\u8981\u8ba1\u7b97\u68af\u5ea6\u7684<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u4e2d\u5e94\u7528\uff0c\u80fd\u591f\u81ea\u52a8\u8ba1\u7b97\u590d\u6742\u51fd\u6570\u7684\u504f\u5bfc\u6570\u3002\u5bf9\u4e8e\u6570\u503c\u65b9\u6cd5\uff0c<strong>NumPy<\/strong>\u548c<strong>SciPy<\/strong>\u63d0\u4f9b\u4e86\u6570\u503c\u8fd1\u4f3c\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5bf9\u79bb\u6563\u6570\u636e\u8fdb\u884c\u5fae\u5206\u3002\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528SYMPY\u8fdb\u884c\u7b26\u53f7\u5fae\u5206<\/p>\n<\/p>\n<p><p>SymPy\u662fPython\u7684\u4e00\u4e2a\u7b26\u53f7\u8ba1\u7b97\u5e93\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8868\u8fbe\u5f0f\u7684\u7b26\u53f7\u5fae\u5206\u3002SymPy\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u76f4\u89c2\u7684\u65b9\u6cd5\u6765\u6c42\u89e3\u504f\u5bfc\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u548c\u5bfc\u5165SymPy<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86SymPy\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install sympy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165SymPy\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import symbols, diff<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf\u548c\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u5728SymPy\u4e2d\uff0c\u9700\u8981\u9996\u5148\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf\u548c\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684\u4e8c\u5143\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x, y = symbols(&#39;x y&#39;)<\/p>\n<p>f = x&lt;strong&gt;2 + y&lt;\/strong&gt;2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6c42\u504f\u5bfc\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528<code>diff<\/code>\u51fd\u6570\u6765\u6c42\u504f\u5bfc\u6570\u3002\u4f8b\u5982\uff0c\u6c42\u51fd\u6570<code>f<\/code>\u5173\u4e8e<code>x<\/code>\u7684\u504f\u5bfc\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_dx = diff(f, x)<\/p>\n<p>print(df_dx)  # \u8f93\u51fa: 2*x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6c42\u5173\u4e8e<code>y<\/code>\u7684\u504f\u5bfc\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_dy = diff(f, y)<\/p>\n<p>print(df_dy)  # \u8f93\u51fa: 2*y<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>SymPy\u53ef\u4ee5\u5904\u7406\u66f4\u52a0\u590d\u6742\u7684\u51fd\u6570\u548c\u591a\u53d8\u91cf\u7684\u5fae\u5206\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5728\u7b26\u53f7\u8ba1\u7b97\u4e0a\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528AUTOGRAD\u8fdb\u884c\u81ea\u52a8\u5fae\u5206<\/p>\n<\/p>\n<p><p>Autograd\u662f\u4e00\u4e2aPython\u5e93\uff0c\u4e13\u6ce8\u4e8e\u81ea\u52a8\u5fae\u5206\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u673a\u5668\u5b66\u4e60\u9886\u57df\u3002\u5b83\u53ef\u4ee5\u81ea\u52a8\u8ba1\u7b97Python\u548cNumPy\u4ee3\u7801\u7684\u5bfc\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u548c\u5bfc\u5165Autograd<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86Autograd\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install autograd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import autograd.numpy as np<\/p>\n<p>from autograd import grad<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9a\u4e49\u51fd\u6570\u548c\u8ba1\u7b97\u5bfc\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u5b9a\u4e49\u4e00\u4e2a\u666e\u901a\u7684Python\u51fd\u6570\uff0c\u7136\u540e\u4f7f\u7528<code>grad<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u5176\u504f\u5bfc\u6570\u3002\u4f8b\u5982\uff0c\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def f(x, y):<\/p>\n<p>    return x&lt;strong&gt;2 + y&lt;\/strong&gt;2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>grad<\/code>\u6765\u8ba1\u7b97\u504f\u5bfc\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_dx = grad(f, 0)  # \u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u51fd\u6570\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u53d8\u91cf\u7684\u7d22\u5f15<\/p>\n<p>df_dy = grad(f, 1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8ba1\u7b97\u7ed3\u679c<\/strong><\/li>\n<\/ol>\n<p><p>\u8ba1\u7b97\u5e76\u6253\u5370\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x_val, y_val = 1.0, 2.0<\/p>\n<p>print(df_dx(x_val, y_val))  # \u8f93\u51fa: 2.0<\/p>\n<p>print(df_dy(x_val, y_val))  # \u8f93\u51fa: 4.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Autograd\u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u5b83\u80fd\u591f\u81ea\u52a8\u5904\u7406\u590d\u6742\u7f51\u7edc\u7684\u68af\u5ea6\u8ba1\u7b97\uff0c\u800c\u65e0\u9700\u624b\u52a8\u6c42\u5bfc\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528NUMPY\u548cSCIPY\u8fdb\u884c\u6570\u503c\u5fae\u5206<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e00\u4e9b\u65e0\u6cd5\u7b26\u53f7\u5316\u6216\u590d\u6742\u7684\u51fd\u6570\uff0c\u6570\u503c\u5fae\u5206\u662f\u4e00\u79cd\u6709\u6548\u7684\u66ff\u4ee3\u65b9\u6848\u3002NumPy\u548cSciPy\u63d0\u4f9b\u4e86\u6570\u503c\u8ba1\u7b97\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>from scipy.misc import derivative<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9a\u4e49\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u5b9a\u4e49\u4e00\u4e2a\u9700\u8981\u6c42\u5bfc\u7684\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def f(x, y):<\/p>\n<p>    return x&lt;strong&gt;2 + y&lt;\/strong&gt;2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8ba1\u7b97\u6570\u503c\u5bfc\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528SciPy\u7684<code>derivative<\/code>\u51fd\u6570\u8fdb\u884c\u6570\u503c\u5fae\u5206\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def partial_x(x, y):<\/p>\n<p>    return derivative(lambda x: f(x, y), x, dx=1e-6)<\/p>\n<p>def partial_y(x, y):<\/p>\n<p>    return derivative(lambda y: f(x, y), y, dx=1e-6)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u8ba1\u7b97\u5e76\u6253\u5370\u7ed3\u679c<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">x_val, y_val = 1.0, 2.0<\/p>\n<p>print(partial_x(x_val, y_val))  # \u8f93\u51fa: 2.0<\/p>\n<p>print(partial_y(x_val, y_val))  # \u8f93\u51fa: 4.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6570\u503c\u5fae\u5206\u867d\u7136\u7cbe\u5ea6\u4e0d\u5982\u7b26\u53f7\u5fae\u5206\u548c\u81ea\u52a8\u5fae\u5206\uff0c\u4f46\u5728\u5904\u7406\u65e0\u6cd5\u7b26\u53f7\u5316\u7684\u590d\u6742\u51fd\u6570\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7efc\u5408\u5e94\u7528\u4e0e\u4f18\u5316<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u8ba1\u7b97\u504f\u5bfc\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u4f18\u5316\u548c\u7efc\u5408\u5e94\u7528\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u7b26\u53f7\u5fae\u5206<\/strong>\uff08SymPy\uff09\u9002\u7528\u4e8e\u6570\u5b66\u8868\u8fbe\u5f0f\u660e\u786e\u7684\u573a\u666f\uff0c\u7ed3\u679c\u7cbe\u786e\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5fae\u5206<\/strong>\uff08Autograd\uff09\u9002\u7528\u4e8e\u673a\u5668\u5b66\u4e60\u6a21\u578b\u4e2d\uff0c\u9700\u8981\u8ba1\u7b97\u590d\u6742\u7f51\u7edc\u68af\u5ea6\u3002<\/li>\n<li><strong>\u6570\u503c\u5fae\u5206<\/strong>\uff08NumPy\/SciPy\uff09\u9002\u7528\u4e8e\u51fd\u6570\u590d\u6742\u4e14\u65e0\u6cd5\u7b26\u53f7\u5316\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u4f18\u5316<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9700\u8981\u5927\u91cf\u8ba1\u7b97\u65f6\uff0c\u8003\u8651\u4f7f\u7528NumPy\u7684\u5411\u91cf\u5316\u64cd\u4f5c\u6765\u63d0\u9ad8\u6027\u80fd\uff0c\u907f\u514d\u5faa\u73af\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6df7\u5408\u4f7f\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u590d\u6742\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u6df7\u5408\u4f7f\u7528\u7b26\u53f7\u5fae\u5206\u548c\u6570\u503c\u5fae\u5206\u3002\u4f8b\u5982\uff0c\u5148\u4f7f\u7528SymPy\u6c42\u51fa\u90e8\u5206\u5bfc\u6570\u7684\u89e3\u6790\u8868\u8fbe\u5f0f\uff0c\u7136\u540e\u5728\u9700\u8981\u6570\u503c\u7ed3\u679c\u7684\u5730\u65b9\u4f7f\u7528NumPy\u8fdb\u884c\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9519\u8bef\u4e0e\u7cbe\u5ea6\u7ba1\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u6570\u503c\u5fae\u5206\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684<code>dx<\/code>\u6b65\u957f\u4ee5\u5e73\u8861\u7cbe\u5ea6\u4e0e\u7a33\u5b9a\u6027\uff0c\u907f\u514d\u56e0\u6570\u503c\u8bef\u5dee\u5bfc\u81f4\u7684\u8ba1\u7b97\u4e0d\u51c6\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u9ad8\u6548\u5730\u6c42\u89e3\u504f\u5bfc\u6570\uff0c\u5e76\u5728\u5404\u79cd\u5e94\u7528\u573a\u666f\u4e2d\u7075\u6d3b\u4f7f\u7528\u3002\u65e0\u8bba\u662f\u5728\u6570\u5b66\u7814\u7a76\u4e2d\u8fd8\u662f\u5728\u5b9e\u9645\u5de5\u7a0b\u4e2d\uff0c\u6b63\u786e\u9009\u62e9\u548c\u5e94\u7528\u8fd9\u4e9b\u5de5\u5177\u5c06\u663e\u8457\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u7ed3\u679c\u7684\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\u4f7f\u7528\u5e93\u6765\u8ba1\u7b97\u504f\u5bfc\u6570\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\u6765\u8fdb\u884c\u7b26\u53f7\u8ba1\u7b97\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662fSymPy\u3002\u901a\u8fc7SymPy\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5b9a\u4e49\u51fd\u6570\u5e76\u8ba1\u7b97\u5176\u504f\u5bfc\u6570\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>diff()<\/code>\u51fd\u6570\u53ef\u4ee5\u6c42\u51fa\u53d8\u91cf\u7684\u504f\u5bfc\u6570\u3002\u4f60\u53ea\u9700\u5b89\u88c5SymPy\u5e93\uff0c\u5b9a\u4e49\u4f60\u7684\u51fd\u6570\uff0c\u5e76\u8c03\u7528\u76f8\u5173\u65b9\u6cd5\u5373\u53ef\u83b7\u5f97\u7ed3\u679c\u3002<\/p>\n<p><strong>\u5728\u6c42\u89e3\u504f\u5bfc\u65f6\uff0c\u5982\u4f55\u5904\u7406\u591a\u53d8\u91cf\u51fd\u6570\uff1f<\/strong><br \/>\u5904\u7406\u591a\u53d8\u91cf\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u5728\u5b9a\u4e49\u51fd\u6570\u65f6\u6307\u5b9a\u6240\u6709\u81ea\u53d8\u91cf\u3002\u901a\u8fc7\u8c03\u7528<code>diff()<\/code>\u51fd\u6570\uff0c\u5e76\u4f20\u5165\u6240\u9700\u7684\u53d8\u91cf\u540d\uff0c\u53ef\u4ee5\u5206\u522b\u8ba1\u7b97\u6bcf\u4e2a\u53d8\u91cf\u7684\u504f\u5bfc\u6570\u3002\u8fd9\u6837\uff0c\u7528\u6237\u53ef\u4ee5\u9488\u5bf9\u4e0d\u540c\u53d8\u91cf\u83b7\u53d6\u7cbe\u786e\u7684\u504f\u5bfc\u4fe1\u606f\uff0c\u4ece\u800c\u6df1\u5165\u7406\u89e3\u51fd\u6570\u7684\u53d8\u5316\u7279\u6027\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u5de5\u5177\u6216\u65b9\u6cd5\u53ef\u4ee5\u8ba1\u7b97\u504f\u5bfc\u6570\uff1f<\/strong><br \/>\u9664\u4e86SymPy\u5916\uff0cNumPy\u548cSciPy\u4e5f\u63d0\u4f9b\u4e86\u6570\u503c\u5bfc\u6570\u7684\u8ba1\u7b97\u529f\u80fd\u3002\u4f7f\u7528\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u5728\u7ed9\u5b9a\u70b9\u9644\u8fd1<a href=\"https:\/\/docs.pingcode.com\/agile\/project-management\/estimation\" target=\"_blank\">\u4f30\u7b97<\/a>\u504f\u5bfc\u6570\uff0c\u7279\u522b\u9002\u7528\u4e8e\u590d\u6742\u6216\u65e0\u6cd5\u89e3\u6790\u6c42\u89e3\u7684\u51fd\u6570\u3002\u901a\u8fc7<code>numpy.gradient()<\/code>\u7b49\u51fd\u6570\uff0c\u7528\u6237\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u6548\u7684\u6570\u503c\u8ba1\u7b97\uff0c\u83b7\u53d6\u504f\u5bfc\u6570\u7684\u8fd1\u4f3c\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u6c42\u504f\u5bfc\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7b26\u53f7\u6570\u5b66\u5e93\u5982SymPy\u3001\u81ea\u52a8\u5fae\u5206\u5e93\u5982Autograd\u3001\u4ee5\u53ca\u6570\u503c\u8ba1\u7b97\u5e93\u5982Num [&hellip;]","protected":false},"author":3,"featured_media":970214,"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\/970208"}],"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=970208"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970208\/revisions"}],"predecessor-version":[{"id":970219,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970208\/revisions\/970219"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/970214"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=970208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=970208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=970208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}