{"id":1182738,"date":"2025-01-15T19:06:45","date_gmt":"2025-01-15T11:06:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1182738.html"},"modified":"2025-01-15T19:06:49","modified_gmt":"2025-01-15T11:06:49","slug":"python%e4%bb%a3%e7%a0%81%e5%ad%97%e4%bd%93%e5%a6%82%e4%bd%95%e6%9b%b4%e6%94%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1182738.html","title":{"rendered":"python\u4ee3\u7801\u5b57\u4f53\u5982\u4f55\u66f4\u6539"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25130639\/79ebc3f3-6cd5-48f0-a6c1-9a496f2aeafe.webp\" alt=\"python\u4ee3\u7801\u5b57\u4f53\u5982\u4f55\u66f4\u6539\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u4e0d\u540c\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u6587\u672c\u7f16\u8f91\u5668\u548c\u5e93\u6765\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4fee\u6539IDE\u6216\u7f16\u8f91\u5668\u7684\u8bbe\u7f6e\u6587\u4ef6\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u5e93\u5982Tkinter\u6216Pygame\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u4fee\u6539IDE\u6216\u7f16\u8f91\u5668\u7684\u8bbe\u7f6e\u6587\u4ef6\u662f\u4e00\u79cd\u6bd4\u8f83\u5e38\u89c1\u548c\u7b80\u5355\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5728IDE\u6216\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u66f4\u6539\u5b57\u4f53<\/h3>\n<\/p>\n<p><h4>1\u3001Visual Studio Code (VS Code)<\/h4>\n<\/p>\n<p><p>VS Code \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u62e5\u6709\u4e30\u5bcc\u7684\u63d2\u4ef6\u548c\u6269\u5c55\u529f\u80fd\u3002\u8981\u66f4\u6539VS Code\u4e2d\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00 VS Code\u3002<\/li>\n<li>\u8fdb\u5165\u8bbe\u7f6e\uff1a\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u9f7f\u8f6e\u56fe\u6807\uff0c\u7136\u540e\u9009\u62e9\u201c\u8bbe\u7f6e\u201d\u3002<\/li>\n<li>\u5728\u8bbe\u7f6e\u641c\u7d22\u680f\u4e2d\u8f93\u5165 &quot;font&quot;\u3002<\/li>\n<li>\u627e\u5230 &quot;Editor: Font Family&quot; \u548c &quot;Editor: Font Size&quot; \u8bbe\u7f6e\u9879\u3002\u4f60\u53ef\u4ee5\u5728&quot;Editor: Font Family&quot;\u4e2d\u8f93\u5165\u4f60\u60f3\u8981\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u4f8b\u5982 &quot;Courier New&quot; \u6216\u8005 &quot;Fira Code&quot;\uff0c\u5e76\u5728&quot;Editor: Font Size&quot;\u4e2d\u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f\u3002<\/li>\n<\/ol>\n<p><h4>2\u3001PyCharm<\/h4>\n<\/p>\n<p><p>PyCharm \u662f\u7531 JetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns \u5f00\u53d1\u7684\u4e13\u4e1a Python \u96c6\u6210\u5f00\u53d1\u73af\u5883\u3002\u8981\u66f4\u6539 PyCharm \u4e2d\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\uff0c\u53ef\u4ee5\u6309\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00 PyCharm\u3002<\/li>\n<li>\u8fdb\u5165\u8bbe\u7f6e\uff1a\u70b9\u51fb\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cSettings\u201d\u3002<\/li>\n<li>\u5728\u8bbe\u7f6e\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u201cEditor\u201d -&gt; \u201cFont\u201d\u3002<\/li>\n<li>\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u5b57\u4f53\u540d\u79f0\u548c\u5927\u5c0f\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u5df2\u6709\u7684\u5b57\u4f53\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u5b57\u4f53\u540d\u79f0\u3002<\/li>\n<\/ol>\n<p><h4>3\u3001Jupyter Notebook<\/h4>\n<\/p>\n<p><p>Jupyter Notebook \u662f\u6570\u636e\u79d1\u5b66\u5bb6\u548c\u7814\u7a76\u4eba\u5458\u5e38\u7528\u7684\u5de5\u5177\u3002\u8981\u66f4\u6539 Jupyter Notebook \u4e2d\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\uff0c\u9700\u8981\u4fee\u6539\u5176CSS\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u627e\u5230 Jupyter Notebook \u7684\u914d\u7f6e\u6587\u4ef6 <code>custom.css<\/code>\u3002\u901a\u5e38\u5728 <code>~\/.jupyter\/custom\/<\/code> \u76ee\u5f55\u4e0b\u3002<\/li>\n<li>\u6253\u5f00 <code>custom.css<\/code> \u6587\u4ef6\uff0c\u6dfb\u52a0\u6216\u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9\uff1a\n<pre><code class=\"language-css\">.CodeMirror pre {<\/p>\n<p>    font-family: &quot;Courier New&quot;, monospace;<\/p>\n<p>    font-size: 14px;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4fdd\u5b58\u5e76\u91cd\u542f Jupyter Notebook\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 Tkinter \u66f4\u6539\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>Tkinter \u662f Python \u7684\u6807\u51c6 GUI \u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 Tkinter \u7684 <code>font<\/code> \u6a21\u5757\u6765\u66f4\u6539\u6587\u672c\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import font<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Tkinter Font Example&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61<\/strong><\/h2>\n<p>custom_font = font.Font(family=&quot;Helvetica&quot;, size=16, weight=&quot;bold&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6807\u7b7e\uff0c\u5e76\u5e94\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53<\/strong><\/h2>\n<p>label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=custom_font)<\/p>\n<p>label.pack()<\/p>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a <code>custom_font<\/code> \u7684\u5b57\u4f53\u5bf9\u8c61\uff0c\u5e76\u5c06\u5176\u5e94\u7528\u5230\u6807\u7b7e\u63a7\u4ef6\u4e0a\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u66f4\u6539\u5b57\u4f53\u7684 family\u3001size \u548c weight\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 Pygame \u66f4\u6539\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>Pygame \u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u6e38\u620f\u7684Python\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 Pygame \u7684 <code>font<\/code> \u6a21\u5757\u6765\u8bbe\u7f6e\u6587\u672c\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<h2><strong>\u521d\u59cb\u5316 Pygame<\/strong><\/h2>\n<p>pygame.init()<\/p>\n<h2><strong>\u8bbe\u7f6e\u5c4f\u5e55\u5c3a\u5bf8<\/strong><\/h2>\n<p>screen = pygame.display.set_mode((800, 600))<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/h2>\n<p>font = pygame.font.SysFont(&quot;Arial&quot;, 48)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6587\u672c\u8868\u9762<\/strong><\/h2>\n<p>text_surface = font.render(&quot;Hello, Pygame!&quot;, True, (255, 255, 255))<\/p>\n<h2><strong>\u83b7\u53d6\u6587\u672c\u8868\u9762\u7684\u77e9\u5f62\u5bf9\u8c61<\/strong><\/h2>\n<p>text_rect = text_surface.get_rect()<\/p>\n<h2><strong>\u8bbe\u7f6e\u6587\u672c\u8868\u9762\u7684\u4f4d\u7f6e<\/strong><\/h2>\n<p>text_rect.center = (400, 300)<\/p>\n<h2><strong>\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>running = True<\/p>\n<p>while running:<\/p>\n<p>    for event in pygame.event.get():<\/p>\n<p>        if event.type == pygame.QUIT:<\/p>\n<p>            running = False<\/p>\n<p>    # \u6e05\u5c4f<\/p>\n<p>    screen.fill((0, 0, 0))<\/p>\n<p>    # \u7ed8\u5236\u6587\u672c\u8868\u9762<\/p>\n<p>    screen.blit(text_surface, text_rect)<\/p>\n<p>    # \u66f4\u65b0\u5c4f\u5e55<\/p>\n<p>    pygame.display.flip()<\/p>\n<h2><strong>\u9000\u51fa Pygame<\/strong><\/h2>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 <code>pygame.font.SysFont<\/code> \u65b9\u6cd5\u6765\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\uff0c\u5e76\u4f7f\u7528 <code>font.render<\/code> \u65b9\u6cd5\u5c06\u6587\u672c\u6e32\u67d3\u5230\u5c4f\u5e55\u4e0a\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5176\u4ed6\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528 Matplotlib \u66f4\u6539\u5b57\u4f53<\/h4>\n<\/p>\n<p><p>Matplotlib \u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u9759\u6001\u3001\u52a8\u753b\u548c\u4ea4\u4e92\u5f0f\u53ef\u89c6\u5316\u7684 Python \u5e93\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 <code>rcParams<\/code> \u6765\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/h2>\n<p>plt.rcParams[&#39;font.family&#39;] = &#39;serif&#39;<\/p>\n<p>plt.rcParams[&#39;font.size&#39;] = 14<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u56fe<\/strong><\/h2>\n<p>plt.plot([1, 2, 3, 4], [1, 4, 2, 3])<\/p>\n<p>plt.xlabel(&#39;X-axis&#39;)<\/p>\n<p>plt.ylabel(&#39;Y-axis&#39;)<\/p>\n<p>plt.title(&#39;Simple Plot&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u4fee\u6539 <code>rcParams<\/code> \u6765\u5168\u5c40\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528 Pyglet \u66f4\u6539\u5b57\u4f53<\/h4>\n<\/p>\n<p><p>Pyglet \u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u6e38\u620f\u548c\u5176\u4ed6\u89c6\u89c9\u5e94\u7528\u7a0b\u5e8f\u7684 Python \u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 Pyglet \u7684 <code>text.Label<\/code> \u7c7b\u6765\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyglet<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7a97\u53e3<\/strong><\/h2>\n<p>window = pyglet.window.Window(800, 600)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u6807\u7b7e<\/strong><\/h2>\n<p>label = pyglet.text.Label(&#39;Hello, Pyglet!&#39;,<\/p>\n<p>                          font_name=&#39;Times New Roman&#39;,<\/p>\n<p>                          font_size=36,<\/p>\n<p>                          x=window.width\/\/2, y=window.height\/\/2,<\/p>\n<p>                          anchor_x=&#39;center&#39;, anchor_y=&#39;center&#39;)<\/p>\n<p>@window.event<\/p>\n<p>def on_draw():<\/p>\n<p>    window.clear()<\/p>\n<p>    label.draw()<\/p>\n<h2><strong>\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>pyglet.app.run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 <code>pyglet.text.Label<\/code> \u7c7b\u6765\u521b\u5efa\u4e00\u4e2a\u6807\u7b7e\uff0c\u5e76\u8bbe\u7f6e\u5176\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728 Python \u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\uff0c\u5305\u62ec\u4f7f\u7528\u4e0d\u540c\u7684IDE\u6216\u6587\u672c\u7f16\u8f91\u5668\u3001\u4f7f\u7528GUI\u5e93\u5982 Tkinter\u3001Pygame \u548c Pyglet\uff0c\u4ee5\u53ca\u4f7f\u7528\u53ef\u89c6\u5316\u5e93\u5982 Matplotlib\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f7f\u7528\u65b9\u6cd5\u3002\u901a\u8fc7\u4e86\u89e3\u548c\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u4ece\u800c\u66f4\u597d\u5730\u63a7\u5236\u4ee3\u7801\u7684\u663e\u793a\u6548\u679c\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><p><strong>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u5173\u952e\u5728\u4e8e\u627e\u5230\u6700\u9002\u5408\u81ea\u5df1\u7684\u5f00\u53d1\u73af\u5883\u548c\u9700\u6c42\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u66f4\u6539\u4ee3\u7801\u7684\u5b57\u4f53\u6837\u5f0f\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\u6837\u5f0f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6216\u6587\u672c\u7f16\u8f91\u5668\u7684\u8bbe\u7f6e\u3002\u4f8b\u5982\uff0c\u5728PyCharm\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8fdb\u5165\u201c\u8bbe\u7f6e\u201d &gt; \u201c\u7f16\u8f91\u5668\u201d &gt; \u201c\u5b57\u4f53\u201d\uff0c\u9009\u62e9\u6240\u9700\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002\u5bf9\u4e8eJupyter Notebook\uff0c\u53ef\u4ee5\u901a\u8fc7CSS\u6837\u5f0f\u81ea\u5b9a\u4e49\u5b57\u4f53\uff0c\u6216\u8005\u5728Markdown\u5355\u5143\u4e2d\u4f7f\u7528HTML\u6807\u7b7e\u3002<\/p>\n<p><strong>\u5728Jupyter Notebook\u4e2d\u662f\u5426\u53ef\u4ee5\u66f4\u6539\u5b57\u4f53\u989c\u8272\uff1f<\/strong><br \/>\u662f\u7684\uff0cJupyter Notebook\u5141\u8bb8\u60a8\u901a\u8fc7HTML\u548cCSS\u6765\u66f4\u6539\u5b57\u4f53\u989c\u8272\u3002\u60a8\u53ef\u4ee5\u5728Markdown\u5355\u5143\u4e2d\u4f7f\u7528<code>&lt;span style=&quot;color:red&quot;&gt;\u60a8\u7684\u6587\u672c&lt;\/span&gt;<\/code>\u6765\u5c06\u6587\u672c\u989c\u8272\u66f4\u6539\u4e3a\u7ea2\u8272\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49CSS\u6587\u4ef6\u6765\u5b9e\u73b0\u5168\u5c40\u6837\u5f0f\u66f4\u6539\u3002<\/p>\n<p><strong>\u4f7f\u7528VS Code\u65f6\u5982\u4f55\u8c03\u6574\u4ee3\u7801\u5b57\u4f53\u5927\u5c0f\uff1f<\/strong><br \/>\u5728VS Code\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8c03\u6574\u4ee3\u7801\u5b57\u4f53\u5927\u5c0f\uff1a\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u8bbe\u7f6e\u56fe\u6807\uff0c\u9009\u62e9\u201c\u8bbe\u7f6e\u201d\uff0c\u7136\u540e\u641c\u7d22\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u3002\u5728\u201c\u7f16\u8f91\u5668: \u5b57\u4f53\u5927\u5c0f\u201d\u9009\u9879\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8f93\u5165\u6240\u9700\u7684\u5b57\u4f53\u5927\u5c0f\u503c\u3002\u66f4\u6539\u540e\uff0c\u60a8\u5c06\u7acb\u5373\u770b\u5230\u4ee3\u7801\u5b57\u4f53\u7684\u53d8\u5316\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u4e0d\u540c\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3001\u6587\u672c\u7f16\u8f91\u5668\u548c\u5e93\u6765\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4fee\u6539I [&hellip;]","protected":false},"author":3,"featured_media":1182743,"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\/1182738"}],"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=1182738"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1182738\/revisions"}],"predecessor-version":[{"id":1182744,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1182738\/revisions\/1182744"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1182743"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1182738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1182738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1182738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}