{"id":1063933,"date":"2024-12-31T16:04:47","date_gmt":"2024-12-31T08:04:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1063933.html"},"modified":"2024-12-31T16:04:50","modified_gmt":"2024-12-31T08:04:50","slug":"python%e7%94%bb%e5%87%ba%e6%9d%a5%e7%9a%84%e5%9b%be%e5%a6%82%e4%bd%95%e4%bf%9d%e5%ad%98","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1063933.html","title":{"rendered":"python\u753b\u51fa\u6765\u7684\u56fe\u5982\u4f55\u4fdd\u5b58"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/aa31a7de-4ab2-4f8c-98c5-2d0f23331a7d.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u753b\u51fa\u6765\u7684\u56fe\u5982\u4f55\u4fdd\u5b58\" \/><\/p>\n<p><p> <strong>Python\u753b\u51fa\u6765\u7684\u56fe\u53ef\u4ee5\u901a\u8fc7<code>savefig<\/code>\u65b9\u6cd5\u4fdd\u5b58\u3001\u53ef\u4ee5\u6307\u5b9a\u4e0d\u540c\u683c\u5f0f\u3001\u4fdd\u5b58\u8def\u5f84\u548c\u6587\u4ef6\u540d\u3001\u53ef\u4ee5\u8bbe\u7f6e\u56fe\u50cf\u5206\u8fa8\u7387\u3001\u53ef\u4ee5\u9009\u62e9\u662f\u5426\u900f\u660e\u80cc\u666f\u3002<\/strong> \u5176\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code>savefig<\/code>\u65b9\u6cd5\u4fdd\u5b58\u56fe\u50cf\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u6765\u81ea<code>matplotlib<\/code>\u5e93\uff0c\u662f\u6700\u5e38\u7528\u7684\u56fe\u50cf\u4fdd\u5b58\u65b9\u6cd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u4fdd\u5b58\u753b\u51fa\u6765\u7684\u56fe\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>savefig<\/code>\u65b9\u6cd5\u4fdd\u5b58\u56fe\u50cf<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\u662f<code>matplotlib<\/code>\uff0c\u5b83\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u56fe\u5f62\u7ed8\u5236\u529f\u80fd\uff0c\u540c\u65f6\u4e5f\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u56fe\u50cf\u4fdd\u5b58\u65b9\u6cd5<code>savefig<\/code>\u3002\u4f7f\u7528<code>savefig<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06\u7ed8\u5236\u7684\u56fe\u50cf\u4fdd\u5b58\u4e3a\u5404\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u5982PNG\u3001JPG\u3001SVG\u3001PDF\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u751f\u6210\u4e00\u4e9b\u6570\u636e<\/strong><\/h2>\n<p>x = [1, 2, 3, 4, 5]<\/p>\n<p>y = [1, 4, 9, 16, 25]<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u50cf<\/strong><\/h2>\n<p>plt.plot(x, y)<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u50cf<\/strong><\/h2>\n<p>plt.savefig(&#39;my_plot.png&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u751f\u6210\u4e86\u4e00\u4e9b\u7b80\u5355\u7684\u6570\u636e\uff0c\u5e76\u7ed8\u5236\u4e86\u4e00\u4e2a\u6298\u7ebf\u56fe\u3002\u4f7f\u7528<code>plt.savefig(&#39;my_plot.png&#39;)<\/code>\u65b9\u6cd5\u5c06\u56fe\u50cf\u4fdd\u5b58\u4e3aPNG\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u4e3a<code>my_plot.png<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u6307\u5b9a\u4e0d\u540c\u683c\u5f0f<\/p>\n<\/p>\n<p><p><code>savefig<\/code>\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u4e0d\u540c\u7684\u6587\u4ef6\u6269\u5c55\u540d\u6765\u4fdd\u5b58\u56fe\u50cf\u4e3a\u4e0d\u540c\u7684\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u56fe\u50cf\u4fdd\u5b58\u4e3aJPG\u3001SVG\u6216PDF\u683c\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;my_plot.jpg&#39;)  # \u4fdd\u5b58\u4e3aJPG\u683c\u5f0f<\/p>\n<p>plt.savefig(&#39;my_plot.svg&#39;)  # \u4fdd\u5b58\u4e3aSVG\u683c\u5f0f<\/p>\n<p>plt.savefig(&#39;my_plot.pdf&#39;)  # \u4fdd\u5b58\u4e3aPDF\u683c\u5f0f<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u4fdd\u5b58\u8def\u5f84\u548c\u6587\u4ef6\u540d<\/p>\n<\/p>\n<p><p>\u5728\u4fdd\u5b58\u56fe\u50cf\u65f6\uff0c\u53ef\u4ee5\u6307\u5b9a\u4fdd\u5b58\u8def\u5f84\u548c\u6587\u4ef6\u540d\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u56fe\u50cf\u4f1a\u4fdd\u5b58\u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e2d\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u5b8c\u6574\u7684\u6587\u4ef6\u8def\u5f84\u5c06\u56fe\u50cf\u4fdd\u5b58\u5230\u5176\u4ed6\u4f4d\u7f6e\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;\/path\/to\/save\/directory\/my_plot.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u56fe\u50cf\u4fdd\u5b58\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8bbe\u7f6e\u56fe\u50cf\u5206\u8fa8\u7387<\/p>\n<\/p>\n<p><p>\u5728\u4fdd\u5b58\u56fe\u50cf\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>dpi<\/code>\u53c2\u6570\u8bbe\u7f6e\u56fe\u50cf\u7684\u5206\u8fa8\u7387\u3002<code>dpi<\/code>\u4ee3\u8868\u6bcf\u82f1\u5bf8\u70b9\u6570\uff08dots per inch\uff09\uff0c\u503c\u8d8a\u9ad8\uff0c\u56fe\u50cf\u8d28\u91cf\u8d8a\u9ad8\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;my_plot.png&#39;, dpi=300)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u56fe\u50cf\u4fdd\u5b58\u4e3a300 dpi\u7684\u9ad8\u5206\u8fa8\u7387\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u9009\u62e9\u662f\u5426\u900f\u660e\u80cc\u666f<\/p>\n<\/p>\n<p><p>\u5728\u4fdd\u5b58\u56fe\u50cf\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>transparent<\/code>\u53c2\u6570\u8bbe\u7f6e\u56fe\u50cf\u80cc\u666f\u662f\u5426\u900f\u660e\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u80cc\u666f\u662f\u4e0d\u900f\u660e\u7684\u3002\u5982\u679c\u5e0c\u671b\u4fdd\u5b58\u900f\u660e\u80cc\u666f\u7684\u56fe\u50cf\uff0c\u53ef\u4ee5\u5c06<code>transparent<\/code>\u53c2\u6570\u8bbe\u7f6e\u4e3a<code>True<\/code>\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;my_plot.png&#39;, transparent=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u56fe\u50cf\u4fdd\u5b58\u4e3a\u900f\u660e\u80cc\u666f\u7684PNG\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u7ed3\u5408\u4f7f\u7528\u591a\u4e2a\u53c2\u6570<\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u591a\u4e2a\u53c2\u6570\u6765\u4fdd\u5b58\u56fe\u50cf\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.savefig(&#39;\/path\/to\/save\/directory\/my_plot.png&#39;, dpi=300, transparent=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u56fe\u50cf\u4fdd\u5b58\u5230\u6307\u5b9a\u76ee\u5f55\uff0c\u5206\u8fa8\u7387\u4e3a300 dpi\uff0c\u5e76\u4e14\u80cc\u666f\u900f\u660e\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u5904\u7406\u5927\u6570\u636e\u56fe\u50cf<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u6570\u636e\u56fe\u50cf\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u8c03\u6574\u56fe\u50cf\u7684\u5927\u5c0f\u548c\u5206\u8fa8\u7387\uff0c\u4ee5\u786e\u4fdd\u56fe\u50cf\u7684\u6e05\u6670\u5ea6\u548c\u53ef\u8bfb\u6027\u3002\u53ef\u4ee5\u4f7f\u7528<code>figsize<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u56fe\u50cf\u7684\u5927\u5c0f\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fig, ax = plt.subplots(figsize=(10, 6))<\/p>\n<p>ax.plot(x, y)<\/p>\n<p>plt.savefig(&#39;my_plot.png&#39;, dpi=300)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u5bbd10\u82f1\u5bf8\u3001\u9ad86\u82f1\u5bf8\u7684\u56fe\u50cf\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3a300 dpi\u7684PNG\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u4fdd\u5b58\u591a\u4e2a\u5b50\u56fe<\/p>\n<\/p>\n<p><p>\u5728\u7ed8\u5236\u591a\u4e2a\u5b50\u56fe\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>savefig<\/code>\u65b9\u6cd5\u4fdd\u5b58\u6574\u4e2a\u56fe\u50cf\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fig, axs = plt.subplots(2, 2)<\/p>\n<p>axs[0, 0].plot(x, y)<\/p>\n<p>axs[0, 1].plot(x, y[::-1])<\/p>\n<p>axs[1, 0].plot(x, [i2 for i in x])<\/p>\n<p>axs[1, 1].plot(x, [i3 for i in x])<\/p>\n<p>plt.savefig(&#39;multiple_plots.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b\u56db\u4e2a\u5b50\u56fe\u7684\u56fe\u50cf\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3aPNG\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u4fdd\u5b58\u5e26\u6709\u81ea\u5b9a\u4e49\u6837\u5f0f\u7684\u56fe\u50cf<\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49\u56fe\u50cf\u6837\u5f0f\u6765\u63d0\u9ad8\u56fe\u50cf\u7684\u7f8e\u89c2\u548c\u4e13\u4e1a\u6027\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u56fe\u50cf\u7684\u6807\u9898\u3001\u8f74\u6807\u7b7e\u3001\u56fe\u4f8b\u7b49\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">fig, ax = plt.subplots()<\/p>\n<p>ax.plot(x, y, label=&#39;y = x^2&#39;)<\/p>\n<p>ax.set_title(&#39;My Plot&#39;)<\/p>\n<p>ax.set_xlabel(&#39;X Axis&#39;)<\/p>\n<p>ax.set_ylabel(&#39;Y Axis&#39;)<\/p>\n<p>ax.legend()<\/p>\n<p>plt.savefig(&#39;customized_plot.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u5e26\u6709\u6807\u9898\u3001\u8f74\u6807\u7b7e\u548c\u56fe\u4f8b\u7684\u56fe\u50cf\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3aPNG\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u5341\u3001\u4fdd\u5b58\u52a8\u753b\u56fe\u50cf<\/p>\n<\/p>\n<p><p><code>matplotlib<\/code>\u5e93\u8fd8\u652f\u6301\u521b\u5efa\u52a8\u753b\u56fe\u50cf\uff0c\u5e76\u53ef\u4ee5\u5c06\u5176\u4fdd\u5b58\u4e3aGIF\u6216MP4\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.animation as animation<\/p>\n<p>fig, ax = plt.subplots()<\/p>\n<p>line, = ax.plot([], [], &#39;r-&#39;)<\/p>\n<p>def init():<\/p>\n<p>    ax.set_xlim(0, 2*np.pi)<\/p>\n<p>    ax.set_ylim(-1, 1)<\/p>\n<p>    return line,<\/p>\n<p>def update(frame):<\/p>\n<p>    x = np.linspace(0, 2*np.pi, 100)<\/p>\n<p>    y = np.sin(x + frame)<\/p>\n<p>    line.set_data(x, y)<\/p>\n<p>    return line,<\/p>\n<p>ani = animation.FuncAnimation(fig, update, frames=np.linspace(0, 2*np.pi, 128), init_func=init, blit=True)<\/p>\n<p>ani.save(&#39;sine_wave.gif&#39;, writer=&#39;imagemagick&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u52a8\u6001\u6b63\u5f26\u6ce2\u56fe\u50cf\uff0c\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3aGIF\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7<code>matplotlib<\/code>\u5e93\u7684<code>savefig<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06Python\u4e2d\u7ed8\u5236\u7684\u56fe\u50cf\u4fdd\u5b58\u4e3a\u5404\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\u3002\u53ef\u4ee5\u6307\u5b9a\u4fdd\u5b58\u8def\u5f84\u548c\u6587\u4ef6\u540d\u3001\u8bbe\u7f6e\u56fe\u50cf\u5206\u8fa8\u7387\u3001\u9009\u62e9\u662f\u5426\u900f\u660e\u80cc\u666f\u3001\u5904\u7406\u5927\u6570\u636e\u56fe\u50cf\u3001\u4fdd\u5b58\u591a\u4e2a\u5b50\u56fe\u3001\u4fdd\u5b58\u5e26\u6709\u81ea\u5b9a\u4e49\u6837\u5f0f\u7684\u56fe\u50cf\u3001\u4fdd\u5b58\u52a8\u753b\u56fe\u50cf\u7b49\u3002\u901a\u8fc7\u7075\u6d3b\u4f7f\u7528\u8fd9\u4e9b\u53c2\u6570\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5404\u79cd\u56fe\u50cf\u4fdd\u5b58\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4fdd\u5b58\u7ed8\u5236\u7684\u56fe\u50cf\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u6765\u7ed8\u5236\u56fe\u50cf\u5e76\u4fdd\u5b58\u3002\u901a\u8fc7\u8c03\u7528<code>savefig()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5c06\u5f53\u524d\u56fe\u50cf\u4fdd\u5b58\u4e3a\u591a\u79cd\u683c\u5f0f\uff0c\u5982PNG\u3001JPEG\u3001SVG\u7b49\u3002\u786e\u4fdd\u5728\u4fdd\u5b58\u4e4b\u524d\u8c03\u7528<code>plt.show()<\/code>\uff0c\u4ee5\u4fbf\u5728\u4fdd\u5b58\u65f6\u4e0d\u4f1a\u5f71\u54cd\u56fe\u50cf\u7684\u8d28\u91cf\u3002<\/p>\n<p><strong>\u652f\u6301\u54ea\u4e9b\u56fe\u50cf\u683c\u5f0f\u8fdb\u884c\u4fdd\u5b58\uff1f<\/strong><br \/>Matplotlib\u652f\u6301\u591a\u79cd\u56fe\u50cf\u683c\u5f0f\u7684\u4fdd\u5b58\uff0c\u5305\u62ecPNG\u3001PDF\u3001SVG\u548cEPS\u7b49\u3002\u9009\u62e9\u9002\u5408\u9700\u6c42\u7684\u683c\u5f0f\u53ef\u4ee5\u4fdd\u8bc1\u56fe\u50cf\u7684\u6e05\u6670\u5ea6\u548c\u9002\u7528\u6027\u3002\u4f8b\u5982\uff0cPNG\u9002\u5408\u7f51\u7edc\u4f7f\u7528\uff0c\u800cPDF\u9002\u5408\u6253\u5370\u548c\u9ad8\u8d28\u91cf\u8f93\u51fa\u3002<\/p>\n<p><strong>\u4fdd\u5b58\u56fe\u50cf\u65f6\u53ef\u4ee5\u8bbe\u7f6e\u54ea\u4e9b\u53c2\u6570\uff1f<\/strong><br \/>\u5728\u4f7f\u7528<code>savefig()<\/code>\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u591a\u4e2a\u53c2\u6570\uff0c\u5982<code>dpi<\/code>\uff08\u6bcf\u82f1\u5bf8\u70b9\u6570\uff09\u3001<code>bbox_inches<\/code>\uff08\u8fb9\u754c\u6846\u8c03\u6574\uff09\u548c<code>quality<\/code>\uff08\u4ec5\u9002\u7528\u4e8eJPEG\u683c\u5f0f\u7684\u56fe\u50cf\uff09\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e<code>dpi=300<\/code>\u53ef\u4ee5\u63d0\u9ad8\u56fe\u50cf\u7684\u5206\u8fa8\u7387\uff0c\u786e\u4fdd\u6253\u5370\u65f6\u7684\u6e05\u6670\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u753b\u51fa\u6765\u7684\u56fe\u53ef\u4ee5\u901a\u8fc7savefig\u65b9\u6cd5\u4fdd\u5b58\u3001\u53ef\u4ee5\u6307\u5b9a\u4e0d\u540c\u683c\u5f0f\u3001\u4fdd\u5b58\u8def\u5f84\u548c\u6587\u4ef6\u540d\u3001\u53ef\u4ee5\u8bbe\u7f6e\u56fe\u50cf\u5206\u8fa8\u7387\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1063945,"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\/1063933"}],"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=1063933"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1063933\/revisions"}],"predecessor-version":[{"id":1063947,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1063933\/revisions\/1063947"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1063945"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1063933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1063933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1063933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}