{"id":974952,"date":"2024-12-27T06:09:18","date_gmt":"2024-12-26T22:09:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/974952.html"},"modified":"2024-12-27T06:09:21","modified_gmt":"2024-12-26T22:09:21","slug":"python%e6%96%87%e5%ad%97%e5%a6%82%e4%bd%95%e8%b0%83%e6%96%b9%e5%90%91","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/974952.html","title":{"rendered":"python\u6587\u5b57\u5982\u4f55\u8c03\u65b9\u5411"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200428\/8950cef4-a5ae-4c30-9255-f46913633774.webp\" alt=\"python\u6587\u5b57\u5982\u4f55\u8c03\u65b9\u5411\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/>\u5728Python\u4e2d\u8c03\u6574\u6587\u5b57\u65b9\u5411\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c<strong>\u4f7f\u7528\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\uff08\u5982Pillow\uff09\u3001\u5229\u7528\u56fe\u5f62\u7528\u6237\u754c\u9762\u5e93\uff08\u5982Tkinter\uff09<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u64cd\u4f5c\u662f\u6700\u57fa\u7840\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u7b80\u5355\u7684\u6587\u5b57\u53cd\u8f6c\u6216\u65b9\u5411\u8c03\u6574\u3002\u901a\u8fc7\u5b57\u7b26\u4e32\u5207\u7247\u3001\u7ffb\u8f6c\u64cd\u4f5c\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u6587\u5b57\u7684\u53cd\u8f6c\uff0c\u4f8b\u5982\u5c06\u5b57\u7b26\u4e32\u4ece\u53f3\u5230\u5de6\u8f93\u51fa\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u9700\u6c42\uff0c\u4f8b\u5982\u5728\u56fe\u50cf\u4e0a\u8c03\u6574\u6587\u5b57\u65b9\u5411\uff0c\u53ef\u4ee5\u4f7f\u7528Pillow\u5e93\uff0c\u8be5\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff0c\u5305\u62ec\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u548c\u65cb\u8f6c\u6587\u5b57\u3002Tkinter\u5219\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u53ef\u4ee5\u5728\u56fe\u5f62\u754c\u9762\u4e2d\u5c55\u793a\u548c\u8c03\u6574\u6587\u5b57\u65b9\u5411\uff0c\u9002\u7528\u4e8e\u684c\u9762\u5e94\u7528\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u5b9e\u73b0\u6587\u5b57\u65b9\u5411\u8c03\u6574  <\/p>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u64cd\u4f5c\u662fPython\u4e2d\u5904\u7406\u6587\u672c\u6570\u636e\u7684\u57fa\u7840\u65b9\u6cd5\u3002\u901a\u8fc7\u5207\u7247\u548c\u7ffb\u8f6c\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u7b80\u5355\u7684\u6587\u5b57\u65b9\u5411\u8c03\u6574\u3002\u4f8b\u5982\uff0c\u8981\u5c06\u6587\u672c\u4ece\u53f3\u5230\u5de6\u663e\u793a\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5207\u7247\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u5207\u7247\u64cd\u4f5c\u662fPython\u4e2d\u5904\u7406\u5b57\u7b26\u4e32\u7684\u4e00\u4e2a\u5f3a\u5927\u5de5\u5177\u3002\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u4f4d\u7f6e\u3001\u7ed3\u675f\u4f4d\u7f6e\u548c\u6b65\u957f\uff0c\u6211\u4eec\u53ef\u4ee5\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u4efb\u610f\u90e8\u5206\u3002\u4f8b\u5982\uff0c\u5b57\u7b26\u4e32\u7684\u53cd\u8f6c\u53ef\u4ee5\u901a\u8fc7\u6b65\u957f\u4e3a-1\u7684\u5207\u7247\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, World!&quot;<\/p>\n<p>reversed_text = text[::-1]<\/p>\n<p>print(reversed_text)  # \u8f93\u51fa &quot;!dlroW ,olleH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u6587\u672c\u8fdb\u884c\u57fa\u672c\u64cd\u4f5c\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528Pillow\u5e93\u8c03\u6574\u6587\u5b57\u65b9\u5411  <\/p>\n<\/p>\n<p><p>Pillow\u662fPython Imaging Library\uff08PIL\uff09\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\u3002\u901a\u8fc7Pillow\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u6587\u5b57\uff0c\u5e76\u8c03\u6574\u5176\u65b9\u5411\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Pillow\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528Pillow\u4e2d\u7684Image\u548cImageDraw\u6a21\u5757\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u6587\u5b57\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u5e76\u65cb\u8f6c\u6587\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw, ImageFont<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u56fe\u50cf<\/strong><\/h2>\n<p>img = Image.new(&#39;RGB&#39;, (200, 100), color = (255, 255, 255))<\/p>\n<h2><strong>\u521d\u59cb\u5316\u753b\u7b14<\/strong><\/h2>\n<p>draw = ImageDraw.Draw(img)<\/p>\n<h2><strong>\u52a0\u8f7d\u5b57\u4f53<\/strong><\/h2>\n<p>font = ImageFont.load_default()<\/p>\n<h2><strong>\u7ed8\u5236\u6587\u5b57<\/strong><\/h2>\n<p>text = &quot;Hello, World!&quot;<\/p>\n<p>draw.text((10, 10), text, font=font, fill=(0, 0, 0))<\/p>\n<h2><strong>\u65cb\u8f6c\u56fe\u50cf<\/strong><\/h2>\n<p>img = img.rotate(90, expand=1)<\/p>\n<h2><strong>\u4fdd\u5b58\u6216\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>img.save(&#39;text_image.png&#39;)<\/p>\n<p>img.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u5e76\u8c03\u6574\u6587\u5b57\u7684\u65b9\u5411\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5728\u56fe\u50cf\u4e2d\u5904\u7406\u6587\u672c\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5229\u7528Tkinter\u8c03\u6574\u6587\u5b57\u65b9\u5411  <\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u5e7f\u6cdb\u7528\u4e8e\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7Tkinter\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u7a97\u53e3\u4e2d\u5c55\u793a\u6587\u672c\uff0c\u5e76\u8fdb\u884c\u65b9\u5411\u8c03\u6574\u3002<\/p>\n<\/p>\n<p><p>Tkinter\u63d0\u4f9b\u4e86Label\u548cCanvas\u7b49\u63a7\u4ef6\uff0c\u53ef\u4ee5\u7528\u4e8e\u5c55\u793a\u6587\u672c\u3002\u4ee5\u4e0b\u793a\u4f8b\u6f14\u793a\u4e86\u5982\u4f55\u5728Tkinter\u7a97\u53e3\u4e2d\u5c55\u793a\u5e76\u8c03\u6574\u6587\u5b57\u65b9\u5411\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Text Direction&quot;)<\/p>\n<h2><strong>\u521b\u5efaCanvas<\/strong><\/h2>\n<p>canvas = tk.Canvas(root, width=200, height=100)<\/p>\n<p>canvas.pack()<\/p>\n<h2><strong>\u7ed8\u5236\u6587\u5b57<\/strong><\/h2>\n<p>text = &quot;Hello, World!&quot;<\/p>\n<h2><strong>\u4f7f\u7528create_text\u65b9\u6cd5\u53ef\u4ee5\u8bbe\u7f6e\u89d2\u5ea6\uff0c\u5b9e\u73b0\u6587\u5b57\u65cb\u8f6c<\/strong><\/h2>\n<p>canvas.create_text(100, 50, text=text, angle=90, font=(&quot;Arial&quot;, 12))<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7Tkinter\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u56fe\u5f62\u754c\u9762\uff0c\u5e76\u5728\u5176\u4e2d\u5c55\u793a\u548c\u8c03\u6574\u6587\u672c\u7684\u65b9\u5411\uff0c\u9002\u7528\u4e8e\u5f00\u53d1\u684c\u9762\u5e94\u7528\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5176\u4ed6\u7b2c\u4e09\u65b9\u5e93\u5b9e\u73b0\u6587\u5b57\u65b9\u5411\u8c03\u6574  <\/p>\n<\/p>\n<p><p>\u9664\u4e86Pillow\u548cTkinter\uff0c\u8fd8\u6709\u8bb8\u591a\u5176\u4ed6\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u7528\u4e8e\u8c03\u6574\u6587\u5b57\u65b9\u5411\uff0c\u4f8b\u5982Matplotlib\u3001OpenCV\u7b49\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u56fe\u5f62\u548c\u56fe\u50cf\u5904\u7406\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>Matplotlib\u901a\u5e38\u7528\u4e8e\u7ed8\u5236\u6570\u636e\u56fe\u5f62\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5728\u56fe\u5f62\u4e0a\u7ed8\u5236\u548c\u8c03\u6574\u6587\u5b57\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Matplotlib\u7ed8\u5236\u65cb\u8f6c\u6587\u5b57\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u7ed8\u5236\u6587\u5b57<\/strong><\/h2>\n<p>text = &quot;Hello, World!&quot;<\/p>\n<p>ax.text(0.5, 0.5, text, fontsize=12, rotation=45, ha=&#39;center&#39;, va=&#39;center&#39;, transform=ax.transAxes)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>OpenCV\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u548c\u5206\u6790\u3002\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528OpenCV\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u65cb\u8f6c\u6587\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u56fe\u50cf<\/strong><\/h2>\n<p>image = np.zeros((200, 400, 3), dtype=np.uint8)<\/p>\n<p>image.fill(255)  # \u586b\u5145\u767d\u8272\u80cc\u666f<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/h2>\n<p>font = cv2.FONT_HERSHEY_SIMPLEX<\/p>\n<h2><strong>\u7ed8\u5236\u6587\u5b57<\/strong><\/h2>\n<p>text = &quot;Hello, World!&quot;<\/p>\n<h2><strong>\u4f7f\u7528putText\u65b9\u6cd5\u53ef\u4ee5\u8bbe\u7f6e\u65cb\u8f6c\u89d2\u5ea6<\/strong><\/h2>\n<p>cv2.putText(image, text, (50, 100), font, 1, (0, 0, 0), 2, cv2.LINE_AA)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>cv2.imshow(&#39;Text Image&#39;, image)<\/p>\n<p>cv2.waitKey(0)<\/p>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u540c\u573a\u666f\u4e2d\u5b9e\u73b0\u6587\u672c\u65b9\u5411\u7684\u8c03\u6574\uff0c\u6ee1\u8db3\u66f4\u591a\u6837\u5316\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8c03\u6574\u6587\u672c\u65b9\u5411\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u8c03\u6574\u6587\u672c\u65b9\u5411\u901a\u5e38\u6d89\u53ca\u5230\u56fe\u5f62\u5e93\u7684\u4f7f\u7528\uff0c\u4f8b\u5982Tkinter\u3001Pygame\u6216Matplotlib\u7b49\u3002\u5177\u4f53\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u8bbe\u7f6e\u6587\u672c\u7684\u65cb\u8f6c\u89d2\u5ea6\u6216\u5e03\u5c40\u65b9\u5411\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u6cd5\u53ef\u80fd\u4f1a\u56e0\u6240\u7528\u5e93\u800c\u5f02\uff0c\u56e0\u6b64\u67e5\u770b\u76f8\u5173\u6587\u6863\u548c\u793a\u4f8b\u4ee3\u7801\u662f\u975e\u5e38\u6709\u5e2e\u52a9\u7684\u3002<\/p>\n<p><strong>\u5728Tkinter\u4e2d\u5982\u4f55\u5b9e\u73b0\u6587\u672c\u7684\u65cb\u8f6c\uff1f<\/strong><br \/>\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Canvas\u7ec4\u4ef6\u6765\u7ed8\u5236\u6587\u672c\u3002\u901a\u8fc7\u6307\u5b9a\u6587\u672c\u7684\u5750\u6807\u548c\u65cb\u8f6c\u89d2\u5ea6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6587\u672c\u7684\u65b9\u5411\u8c03\u6574\u3002\u53ef\u4ee5\u53c2\u8003Tkinter\u7684Canvas.create_text()\u65b9\u6cd5\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u6587\u5b57\u7684\u4f4d\u7f6e\u53c2\u6570\uff0c\u53ef\u4ee5\u7ed3\u5408\u5176\u4ed6\u7ed8\u56fe\u64cd\u4f5c\u6765\u5b9e\u73b0\u65cb\u8f6c\u6548\u679c\u3002<\/p>\n<p><strong>\u4f7f\u7528Matplotlib\u65f6\u5982\u4f55\u8bbe\u7f6e\u6587\u672c\u7684\u65b9\u5411\uff1f<\/strong><br \/>\u5728Matplotlib\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528text()\u51fd\u6570\u8bbe\u7f6e\u6587\u672c\u7684\u65b9\u5411\u3002\u901a\u8fc7\u53c2\u6570rotation\u53ef\u4ee5\u6307\u5b9a\u6587\u672c\u7684\u65cb\u8f6c\u89d2\u5ea6\uff0c\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u6587\u672c\u7684\u5c55\u793a\u65b9\u5f0f\u3002\u540c\u65f6\uff0cMatplotlib\u8fd8\u652f\u6301\u591a\u79cd\u6587\u672c\u5bf9\u9f50\u65b9\u5f0f\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u63a7\u5236\u6587\u672c\u5728\u56fe\u8868\u4e2d\u7684\u4f4d\u7f6e\u548c\u65b9\u5411\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728Pygame\u4e2d\u8c03\u6574\u6587\u672c\u65b9\u5411\uff1f<\/strong><br \/>Pygame\u672c\u8eab\u4e0d\u63d0\u4f9b\u76f4\u63a5\u8c03\u6574\u6587\u672c\u65b9\u5411\u7684\u529f\u80fd\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u65cb\u8f6c\u6587\u672c\u56fe\u50cf\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u4f7f\u7528pygame.transform.rotate()\u65b9\u6cd5\u5c06\u6587\u672c\u56fe\u50cf\u65cb\u8f6c\u5230\u6240\u9700\u7684\u89d2\u5ea6\u3002\u521b\u5efa\u6587\u672c\u65f6\uff0c\u5148\u5c06\u5176\u6e32\u67d3\u4e3a\u56fe\u50cf\uff0c\u7136\u540e\u5e94\u7528\u65cb\u8f6c\uff0c\u6700\u540e\u5c06\u65cb\u8f6c\u540e\u7684\u56fe\u50cf\u7ed8\u5236\u5230\u5c4f\u5e55\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a\u5728Python\u4e2d\u8c03\u6574\u6587\u5b57\u65b9\u5411\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\uff08\u5982Pillow\uff09\u3001\u5229 [&hellip;]","protected":false},"author":3,"featured_media":974959,"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\/974952"}],"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=974952"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974952\/revisions"}],"predecessor-version":[{"id":974965,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974952\/revisions\/974965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/974959"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=974952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=974952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=974952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}