{"id":1098798,"date":"2025-01-08T15:24:28","date_gmt":"2025-01-08T07:24:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1098798.html"},"modified":"2025-01-08T15:24:30","modified_gmt":"2025-01-08T07:24:30","slug":"python%e4%b8%adpil%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e5%9b%be%e7%89%87%e7%b1%bb%e5%9e%8b-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1098798.html","title":{"rendered":"python\u4e2dpil\u5982\u4f55\u67e5\u770b\u56fe\u7247\u7c7b\u578b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25062824\/35b74106-078e-446f-9c33-178b26b21e92.webp\" alt=\"python\u4e2dpil\u5982\u4f55\u67e5\u770b\u56fe\u7247\u7c7b\u578b\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u4f7f\u7528PIL\u5e93\u67e5\u770b\u56fe\u7247\u7c7b\u578b\uff0c\u53ef\u4ee5\u901a\u8fc7PIL\u5e93\u7684Image\u6a21\u5757\u6765\u5b9e\u73b0\u3002\u901a\u8fc7\u52a0\u8f7d\u56fe\u7247\uff0c\u7136\u540e\u4f7f\u7528\u56fe\u7247\u5bf9\u8c61\u7684format\u5c5e\u6027\uff0c\u53ef\u4ee5\u67e5\u770b\u56fe\u7247\u7684\u7c7b\u578b\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0cPIL\uff08Python Imaging Library\uff09\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0cPillow\u662fPIL\u7684\u4e00\u4e2a\u884d\u751f\u7248\u672c\uff0c\u5b83\u4e0d\u4ec5\u652f\u6301\u591a\u79cd\u56fe\u50cf\u683c\u5f0f\u7684\u6253\u5f00\u3001\u64cd\u4f5c\u548c\u4fdd\u5b58\uff0c\u8fd8\u63d0\u4f9b\u4e86\u5bf9\u56fe\u50cf\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\u7684\u4e30\u5bcc\u529f\u80fd\u3002\u8981\u67e5\u770b\u56fe\u7247\u7684\u7c7b\u578b\uff0c\u4e3b\u8981\u6b65\u9aa4\u662f\uff1a1. \u5b89\u88c5Pillow\u5e93\uff0c2. \u5bfc\u5165Image\u6a21\u5757\uff0c3. \u6253\u5f00\u56fe\u7247\uff0c4. \u4f7f\u7528format\u5c5e\u6027\u67e5\u770b\u56fe\u7247\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><p><strong>\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Pillow\u5e93\uff1a<\/strong> \u5728\u4f7f\u7528Pillow\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86Pillow\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u5165Image\u6a21\u5757\uff1a<\/strong> \u5728Python\u811a\u672c\u4e2d\u5bfc\u5165Image\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6253\u5f00\u56fe\u7247\uff1a<\/strong> \u4f7f\u7528Image\u6a21\u5757\u7684open\u51fd\u6570\u6765\u6253\u5f00\u56fe\u7247\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">image = Image.open(&#39;path_to_image.jpg&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u56fe\u7247\u7c7b\u578b\uff1a<\/strong> \u4f7f\u7528\u56fe\u7247\u5bf9\u8c61\u7684format\u5c5e\u6027\u6765\u67e5\u770b\u56fe\u7247\u7684\u7c7b\u578b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(image.format)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u4e3e\u4e2a\u5b8c\u6574\u7684\u4f8b\u5b50\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<h2><strong>\u6253\u5f00\u56fe\u7247\u6587\u4ef6<\/strong><\/h2>\n<p>image = Image.open(&#39;example.jpg&#39;)<\/p>\n<h2><strong>\u67e5\u770b\u5e76\u6253\u5370\u56fe\u7247\u7c7b\u578b<\/strong><\/h2>\n<p>print(image.format)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7Pillow\u5e93\u7684Image\u6a21\u5757\u6253\u5f00\u4e86\u4e00\u5f20\u540d\u4e3aexample.jpg\u7684\u56fe\u7247\uff0c\u7136\u540e\u4f7f\u7528image\u5bf9\u8c61\u7684format\u5c5e\u6027\u67e5\u770b\u5e76\u6253\u5370\u51fa\u56fe\u7247\u7684\u7c7b\u578b\u3002image.format\u5c06\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u8868\u793a\u56fe\u7247\u7684\u683c\u5f0f\u7c7b\u578b\uff0c\u5982&#39;JPEG&#39;\u3001&#39;PNG&#39;\u3001&#39;GIF&#39;\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u5b89\u88c5\u548c\u5bfc\u5165Pillow\u5e93<\/h3>\n<\/p>\n<p><p>Pillow\u662fPython Imaging Library\uff08PIL\uff09\u7684\u4e00\u4e2a\u6d3e\u751f\u7248\u672c\uff0c\u5177\u6709\u66f4\u597d\u7684\u517c\u5bb9\u6027\u548c\u7ef4\u62a4\u6027\u3002Pillow\u5e93\u7684\u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165Pillow\u5e93\u7684Image\u6a21\u5757\u6765\u8fdb\u884c\u56fe\u50cf\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u6253\u5f00\u548c\u67e5\u770b\u56fe\u7247\u7c7b\u578b<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Pillow\u5e93\u6253\u5f00\u56fe\u7247\u6587\u4ef6\u975e\u5e38\u7b80\u5355\uff0c\u53ef\u4ee5\u901a\u8fc7Image\u6a21\u5757\u7684open\u51fd\u6570\u6765\u5b9e\u73b0\u3002\u7136\u540e\uff0c\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684format\u5c5e\u6027\u53ef\u4ee5\u67e5\u770b\u56fe\u7247\u7684\u7c7b\u578b\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<h2><strong>\u6253\u5f00\u56fe\u7247\u6587\u4ef6<\/strong><\/h2>\n<p>image = Image.open(&#39;example.jpg&#39;)<\/p>\n<h2><strong>\u67e5\u770b\u5e76\u6253\u5370\u56fe\u7247\u7c7b\u578b<\/strong><\/h2>\n<p>print(image.format)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u9996\u5148\u5bfc\u5165\u4e86Pillow\u5e93\u7684Image\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528open\u51fd\u6570\u6253\u5f00\u4e86\u4e00\u5f20\u540d\u4e3aexample.jpg\u7684\u56fe\u7247\u3002\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684format\u5c5e\u6027\u67e5\u770b\u5e76\u6253\u5370\u51fa\u56fe\u7247\u7684\u7c7b\u578b\u3002image.format\u5c06\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u8868\u793a\u56fe\u7247\u7684\u683c\u5f0f\u7c7b\u578b\uff0c\u5982&#39;JPEG&#39;\u3001&#39;PNG&#39;\u3001&#39;GIF&#39;\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u66f4\u591aPillow\u5e93\u7684\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u67e5\u770b\u56fe\u7247\u7c7b\u578b\u5916\uff0cPillow\u5e93\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5176\u4ed6\u529f\u80fd\uff0c\u53ef\u4ee5\u5bf9\u56fe\u50cf\u8fdb\u884c\u5404\u79cd\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u529f\u80fd\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1. \u83b7\u53d6\u56fe\u7247\u5927\u5c0f<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684size\u5c5e\u6027\u83b7\u53d6\u56fe\u7247\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">width, height = image.size<\/p>\n<p>print(f&quot;\u5bbd\u5ea6: {width}, \u9ad8\u5ea6: {height}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u83b7\u53d6\u56fe\u7247\u6a21\u5f0f<\/h4>\n<\/p>\n<p><p>\u56fe\u7247\u6a21\u5f0f\u8868\u793a\u56fe\u7247\u7684\u8272\u5f69\u6a21\u5f0f\uff0c\u5982&#39;RGB&#39;\u3001&#39;RGBA&#39;\u3001&#39;L&#39;\u7b49\uff0c\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684mode\u5c5e\u6027\u83b7\u53d6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(image.mode)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u663e\u793a\u56fe\u7247<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684show\u65b9\u6cd5\u5728\u9ed8\u8ba4\u56fe\u50cf\u67e5\u770b\u5668\u4e2d\u663e\u793a\u56fe\u7247\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4. \u4fdd\u5b58\u56fe\u7247<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684save\u65b9\u6cd5\u5c06\u56fe\u7247\u4fdd\u5b58\u4e3a\u4e0d\u540c\u683c\u5f0f\u7684\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">image.save(&#39;example_copy.png&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5. \u88c1\u526a\u56fe\u7247<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684crop\u65b9\u6cd5\u88c1\u526a\u56fe\u7247\uff0c\u4f20\u5165\u88c1\u526a\u533a\u57df\u7684\u5750\u6807\uff08\u5de6\u3001\u4e0a\u3001\u53f3\u3001\u4e0b\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">cropped_image = image.crop((10, 10, 100, 100))<\/p>\n<p>cropped_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>6. \u7f29\u653e\u56fe\u7247<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684resize\u65b9\u6cd5\u7f29\u653e\u56fe\u7247\uff0c\u4f20\u5165\u65b0\u7684\u5c3a\u5bf8\uff08\u5bbd\u5ea6\u3001\u9ad8\u5ea6\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">resized_image = image.resize((200, 200))<\/p>\n<p>resized_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>7. \u65cb\u8f6c\u56fe\u7247<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u56fe\u7247\u5bf9\u8c61\u7684rotate\u65b9\u6cd5\u65cb\u8f6c\u56fe\u7247\uff0c\u4f20\u5165\u65cb\u8f6c\u89d2\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">rotated_image = image.rotate(45)<\/p>\n<p>rotated_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7Pillow\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728Python\u4e2d\u67e5\u770b\u56fe\u7247\u7c7b\u578b\uff0c\u5e76\u8fdb\u884c\u5404\u79cd\u56fe\u50cf\u64cd\u4f5c\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5Pillow\u5e93\u3001\u6253\u5f00\u56fe\u7247\u6587\u4ef6\u3001\u67e5\u770b\u56fe\u7247\u7c7b\u578b\u7b49\u57fa\u672c\u64cd\u4f5c\uff0c\u540c\u65f6\u8fd8\u5c55\u793a\u4e86Pillow\u5e93\u7684\u4e00\u4e9b\u5e38\u7528\u529f\u80fd\uff0c\u5982\u83b7\u53d6\u56fe\u7247\u5927\u5c0f\u3001\u83b7\u53d6\u56fe\u7247\u6a21\u5f0f\u3001\u663e\u793a\u56fe\u7247\u3001\u4fdd\u5b58\u56fe\u7247\u3001\u88c1\u526a\u56fe\u7247\u3001\u7f29\u653e\u56fe\u7247\u548c\u65cb\u8f6c\u56fe\u7247\u7b49\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Pillow\u5e93\u8fdb\u884c\u56fe\u50cf\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528PIL\u5e93\u67e5\u770b\u56fe\u7247\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528PIL\uff08Pillow\uff09\u5e93\u6765\u67e5\u770b\u56fe\u7247\u7684\u683c\u5f0f\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86Pillow\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<pre><code class=\"language-bash\">pip install Pillow\n<\/code><\/pre>\n<p>\u63a5\u7740\uff0c\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u52a0\u8f7d\u56fe\u7247\u5e76\u67e5\u770b\u5176\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-python\">from PIL import Image\n\n# \u6253\u5f00\u56fe\u7247\u6587\u4ef6\nimage = Image.open(&#39;your_image.jpg&#39;)\n\n# \u83b7\u53d6\u56fe\u7247\u683c\u5f0f\nprint(image.format)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f93\u51fa\u56fe\u7247\u7684\u683c\u5f0f\uff0c\u6bd4\u5982JPEG\u3001PNG\u7b49\u3002<\/p>\n<p><strong>PIL\u5e93\u652f\u6301\u54ea\u4e9b\u56fe\u7247\u683c\u5f0f\uff1f<\/strong><br \/>PIL\u5e93\u652f\u6301\u591a\u79cd\u56fe\u7247\u683c\u5f0f\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8eJPEG\u3001PNG\u3001BMP\u3001GIF\u3001TIFF\u7b49\u3002\u4e0d\u540c\u7684\u683c\u5f0f\u5177\u6709\u4e0d\u540c\u7684\u538b\u7f29\u7b97\u6cd5\u548c\u7279\u70b9\uff0c\u9009\u62e9\u9002\u5408\u7684\u683c\u5f0f\u53ef\u4ee5\u5f71\u54cd\u56fe\u7247\u7684\u8d28\u91cf\u548c\u5927\u5c0f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u65e0\u6cd5\u8bc6\u522b\u7684\u56fe\u7247\u683c\u5f0f\u95ee\u9898\uff1f<\/strong><br \/>\u5982\u679c\u5728\u4f7f\u7528PIL\u6253\u5f00\u56fe\u7247\u65f6\u9047\u5230\u201c\u65e0\u6cd5\u8bc6\u522b\u7684\u56fe\u7247\u683c\u5f0f\u201d\u9519\u8bef\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u6587\u4ef6\u635f\u574f\u6216\u6587\u4ef6\u6269\u5c55\u540d\u4e0e\u5b9e\u9645\u683c\u5f0f\u4e0d\u5339\u914d\u3002\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u6b65\u9aa4\u89e3\u51b3\u95ee\u9898\uff1a<\/p>\n<ol>\n<li>\u786e\u4fdd\u6587\u4ef6\u6ca1\u6709\u635f\u574f\uff0c\u53ef\u4ee5\u7528\u5176\u4ed6\u56fe\u50cf\u67e5\u770b\u5de5\u5177\u6253\u5f00\u3002<\/li>\n<li>\u68c0\u67e5\u6587\u4ef6\u6269\u5c55\u540d\u662f\u5426\u4e0e\u5b9e\u9645\u683c\u5f0f\u76f8\u7b26\u3002<\/li>\n<li>\u5982\u679c\u6587\u4ef6\u662f\u7279\u6b8a\u683c\u5f0f\uff0c\u8003\u8651\u4f7f\u7528\u5176\u4ed6\u5e93\u6216\u5de5\u5177\u8fdb\u884c\u8f6c\u6362\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u4f7f\u7528PIL\u5e93\u67e5\u770b\u56fe\u7247\u7c7b\u578b\uff0c\u53ef\u4ee5\u901a\u8fc7PIL\u5e93\u7684Image\u6a21\u5757\u6765\u5b9e\u73b0\u3002\u901a\u8fc7\u52a0\u8f7d\u56fe\u7247\uff0c\u7136\u540e\u4f7f\u7528\u56fe\u7247\u5bf9 [&hellip;]","protected":false},"author":3,"featured_media":1098811,"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\/1098798"}],"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=1098798"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1098798\/revisions"}],"predecessor-version":[{"id":1098813,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1098798\/revisions\/1098813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1098811"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1098798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1098798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1098798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}