{"id":1043556,"date":"2024-12-31T13:07:11","date_gmt":"2024-12-31T05:07:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1043556.html"},"modified":"2024-12-31T13:07:13","modified_gmt":"2024-12-31T05:07:13","slug":"java%e5%a6%82%e4%bd%95%e8%a7%a3%e7%a0%81python%e7%9a%84%e5%ad%97%e8%8a%82%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1043556.html","title":{"rendered":"java\u5982\u4f55\u89e3\u7801python\u7684\u5b57\u8282\u4e32"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/aa1af62e-44e2-4039-badc-02f2f5936749.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"java\u5982\u4f55\u89e3\u7801python\u7684\u5b57\u8282\u4e32\" \/><\/p>\n<p><p> <strong>Java\u89e3\u7801Python\u5b57\u8282\u4e32\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u9002\u5f53\u7684\u5b57\u7b26\u96c6\u3001\u91c7\u7528\u5408\u9002\u7684\u5e93\u3001\u5904\u7406\u6570\u636e\u6d41<\/strong><\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u5b57\u8282\u4e32\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u7f16\u7801\u65b9\u5f0f\uff0c\u751f\u6210\u76f8\u5e94\u7684\u5b57\u8282\u6570\u636e\u3002Java\u53ef\u4ee5\u901a\u8fc7\u76f8\u5e94\u7684\u5b57\u7b26\u96c6\u548c\u5e93\u6765\u89e3\u7801\u8fd9\u4e9b\u5b57\u8282\u4e32\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Java\u7684<code>String<\/code>\u7c7b\u548c\u76f8\u5173\u5e93\u6765\u5b8c\u6210\u89e3\u7801\u5de5\u4f5c\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5728Java\u4e2d\u89e3\u7801Python\u751f\u6210\u7684\u5b57\u8282\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u7406\u89e3Python\u5b57\u8282\u4e32<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u8282\u4e32\u662f\u4ee5<code>bytes<\/code>\u7c7b\u578b\u8868\u793a\u7684\u3002\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>str.encode()<\/code>\u65b9\u6cd5\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u7f16\u7801\u4e3a\u5b57\u8282\u4e32\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, World!&quot;<\/p>\n<p>byte_str = text.encode(&#39;utf-8&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5b57\u7b26\u4e32<code>text<\/code>\u88ab\u7f16\u7801\u4e3a\u4e00\u4e2aUTF-8\u5b57\u8282\u4e32<code>byte_str<\/code>\u3002\u5728Java\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u7684\u5b57\u7b26\u96c6\u6765\u89e3\u7801\u8fd9\u4e2a\u5b57\u8282\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Java\u7684String\u7c7b\u89e3\u7801\u5b57\u8282\u4e32<\/h3>\n<\/p>\n<p><p>Java\u7684<code>String<\/code>\u7c7b\u63d0\u4f9b\u4e86\u591a\u79cd\u6784\u9020\u65b9\u6cd5\u6765\u5904\u7406\u5b57\u8282\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u6784\u9020\u65b9\u6cd5\u5c06\u5b57\u8282\u4e32\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.nio.charset.StandardCharsets;<\/p>\n<p>public class DecodeExample {<\/p>\n<p>    public static void m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n(String[] args) {<\/p>\n<p>        byte[] byteStr = {72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33};<\/p>\n<p>        String decodedString = new String(byteStr, StandardCharsets.UTF_8);<\/p>\n<p>        System.out.println(decodedString);  \/\/ Output: Hello, World!<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5b57\u8282\u6570\u7ec4<code>byteStr<\/code>\uff0c\u5e76\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\u5c06\u5176\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5904\u7406\u4e0d\u540c\u7f16\u7801\u7684\u5b57\u8282\u4e32<\/h3>\n<\/p>\n<p><p>\u4e0d\u540c\u7684\u7f16\u7801\u65b9\u5f0f\u4f1a\u5f71\u54cd\u5b57\u8282\u4e32\u7684\u89e3\u7801\u8fc7\u7a0b\u3002\u786e\u4fdd\u89e3\u7801\u65f6\u4f7f\u7528\u4e0e\u7f16\u7801\u65f6\u76f8\u540c\u7684\u5b57\u7b26\u96c6\u3002\u4f8b\u5982\uff0c\u5728Python\u4e2d\u4f7f\u7528UTF-16\u7f16\u7801\uff0c\u53ef\u4ee5\u5728Java\u4e2d\u4f7f\u7528\u76f8\u5e94\u7684\u5b57\u7b26\u96c6\u8fdb\u884c\u89e3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, World!&quot;<\/p>\n<p>byte_str = text.encode(&#39;utf-16&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Java\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.nio.charset.StandardCharsets;<\/p>\n<p>public class DecodeExample {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        byte[] byteStr = { -2, -1, 0, 72, 0, 101, 0, 108, 0, 108, 0, 111, 0, 44, 0, 32, 0, 87, 0, 111, 0, 114, 0, 108, 0, 100, 0, 33};<\/p>\n<p>        String decodedString = new String(byteStr, StandardCharsets.UTF_16);<\/p>\n<p>        System.out.println(decodedString);  \/\/ Output: Hello, World!<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u8fdb\u884c\u89e3\u7801<\/h3>\n<\/p>\n<p><p>\u9664\u4e86Java\u539f\u751f\u7684<code>String<\/code>\u7c7b\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982Apache Commons Codec\uff0c\u6765\u89e3\u7801\u5b57\u8282\u4e32\u3002Apache Commons Codec\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u7f16\u7801\u548c\u89e3\u7801\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u6570\u636e\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u6dfb\u52a0\u4f9d\u8d56\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-xml\">&lt;dependency&gt;<\/p>\n<p>    &lt;groupId&gt;commons-codec&lt;\/groupId&gt;<\/p>\n<p>    &lt;artifactId&gt;commons-codec&lt;\/artifactId&gt;<\/p>\n<p>    &lt;version&gt;1.15&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import org.apache.commons.codec.binary.Hex;<\/p>\n<p>public class DecodeExample {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        String hexString = &quot;48656c6c6f2c20576f726c6421&quot;;<\/p>\n<p>        byte[] byteStr = Hex.decodeHex(hexString);<\/p>\n<p>        String decodedString = new String(byteStr, StandardCharsets.UTF_8);<\/p>\n<p>        System.out.println(decodedString);  \/\/ Output: Hello, World!<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528Apache Commons Codec\u5e93\u5c06\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\u89e3\u7801\u4e3a\u5b57\u8282\u6570\u7ec4\uff0c\u5e76\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u6570\u636e\u6d41<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5b57\u8282\u4e32\u901a\u5e38\u901a\u8fc7\u6570\u636e\u6d41\u4f20\u8f93\u3002\u53ef\u4ee5\u4f7f\u7528Java\u7684<code>InputStream<\/code>\u548c<code>OutputStream<\/code>\u7c7b\u5904\u7406\u8fd9\u4e9b\u6570\u636e\u6d41\u3002\u4f8b\u5982\uff0c\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u8282\u6570\u636e\u5e76\u8fdb\u884c\u89e3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.io.FileInputStream;<\/p>\n<p>import java.io.IOException;<\/p>\n<p>import java.nio.charset.StandardCharsets;<\/p>\n<p>public class DecodeExample {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        try (FileInputStream fis = new FileInputStream(&quot;example.txt&quot;)) {<\/p>\n<p>            byte[] byteStr = new byte[fis.available()];<\/p>\n<p>            fis.read(byteStr);<\/p>\n<p>            String decodedString = new String(byteStr, StandardCharsets.UTF_8);<\/p>\n<p>            System.out.println(decodedString);<\/p>\n<p>        } catch (IOException e) {<\/p>\n<p>            e.printStackTrace();<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4ece<code>example.txt<\/code>\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u8282\u6570\u636e\uff0c\u5e76\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\u5c06\u5176\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u7279\u6b8a\u5b57\u7b26\u548c\u591a\u8bed\u8a00\u652f\u6301<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u548c\u591a\u8bed\u8a00\u6587\u672c\u7684\u5b57\u8282\u4e32\u65f6\uff0c\u9009\u62e9\u9002\u5f53\u7684\u5b57\u7b26\u96c6\u81f3\u5173\u91cd\u8981\u3002UTF-8\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f16\u7801\u65b9\u5f0f\uff0c\u80fd\u591f\u5904\u7406\u5927\u591a\u6570\u8bed\u8a00\u548c\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>Python\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;\u4f60\u597d\uff0c\u4e16\u754c\uff01&quot;<\/p>\n<p>byte_str = text.encode(&#39;utf-8&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Java\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.nio.charset.StandardCharsets;<\/p>\n<p>public class DecodeExample {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        byte[] byteStr = {-28, -67, -96, -27, -91, -67, -26, -120, -111, -24, -81, -107, -23, -101, -74, -21, -101, -121};<\/p>\n<p>        String decodedString = new String(byteStr, StandardCharsets.UTF_8);<\/p>\n<p>        System.out.println(decodedString);  \/\/ Output: \u4f60\u597d\uff0c\u4e16\u754c\uff01<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u6210\u529f\u5730\u89e3\u7801\u4e86\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u7684\u5b57\u8282\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u5904\u7406\u5f02\u5e38\u548c\u9519\u8bef<\/h3>\n<\/p>\n<p><p>\u5728\u89e3\u7801\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5f02\u5e38\u548c\u9519\u8bef\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u9519\u8bef\u7684\u5b57\u7b26\u96c6\u8fdb\u884c\u89e3\u7801\u53ef\u80fd\u5bfc\u81f4\u4e71\u7801\u3002\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u6355\u83b7\u8fd9\u4e9b\u9519\u8bef\u5e76\u8fdb\u884c\u9002\u5f53\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.nio.charset.StandardCharsets;<\/p>\n<p>import java.nio.charset.UnsupportedCharsetException;<\/p>\n<p>public class DecodeExample {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        byte[] byteStr = {72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33};<\/p>\n<p>        try {<\/p>\n<p>            String decodedString = new String(byteStr, StandardCharsets.UTF_16);<\/p>\n<p>            System.out.println(decodedString);<\/p>\n<p>        } catch (UnsupportedCharsetException e) {<\/p>\n<p>            System.err.println(&quot;Unsupported charset: &quot; + e.getMessage());<\/p>\n<p>        } catch (Exception e) {<\/p>\n<p>            System.err.println(&quot;Error decoding byte string: &quot; + e.getMessage());<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u6545\u610f\u4f7f\u7528\u9519\u8bef\u7684\u5b57\u7b26\u96c6\u8fdb\u884c\u89e3\u7801\uff0c\u5e76\u6355\u83b7\u53ef\u80fd\u51fa\u73b0\u7684\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u89e3\u7801Python\u751f\u6210\u7684\u5b57\u8282\u4e32\u5728Java\u4e2d\u5e76\u4e0d\u590d\u6742\uff0c\u53ea\u9700\u8981\u9009\u62e9\u9002\u5f53\u7684\u5b57\u7b26\u96c6\u548c\u65b9\u6cd5\u3002\u53ef\u4ee5\u4f7f\u7528Java\u7684<code>String<\/code>\u7c7b\u3001\u7b2c\u4e09\u65b9\u5e93\u3001\u4ee5\u53ca\u5904\u7406\u6570\u636e\u6d41\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u89e3\u7801\u4efb\u52a1\u3002\u786e\u4fdd\u4f7f\u7528\u4e0e\u7f16\u7801\u65f6\u76f8\u540c\u7684\u5b57\u7b26\u96c6\uff0c\u4ee5\u907f\u514d\u89e3\u7801\u9519\u8bef\u548c\u4e71\u7801\u95ee\u9898\u3002\u901a\u8fc7\u5904\u7406\u5f02\u5e38\u548c\u9519\u8bef\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Java\u4e2d\u5904\u7406Python\u751f\u6210\u7684\u5b57\u8282\u4e32\uff1f<\/strong><br \/>\u5728Java\u4e2d\u5904\u7406Python\u751f\u6210\u7684\u5b57\u8282\u4e32\u65f6\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3Python\u5b57\u8282\u4e32\u7684\u7f16\u7801\u65b9\u5f0f\u3002\u901a\u5e38\uff0cPython\u4f7f\u7528UTF-8\u7f16\u7801\u8fdb\u884c\u5b57\u7b26\u4e32\u5904\u7406\u3002\u53ef\u4ee5\u4f7f\u7528Java\u7684<code>String<\/code>\u7c7b\u7ed3\u5408<code>getBytes<\/code>\u548c<code>new String<\/code>\u65b9\u6cd5\u8fdb\u884c\u89e3\u7801\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>new String(byteArray, StandardCharsets.UTF_8)<\/code>\u5c06\u5b57\u8282\u6570\u7ec4\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>Java\u4e2d\u5982\u4f55\u4e0ePython\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff1f<\/strong><br \/>\u5728Java\u4e0ePython\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u65f6\uff0c\u5efa\u8bae\u4f7f\u7528JSON\u6216XML\u683c\u5f0f\u3002\u8fd9\u4e9b\u683c\u5f0f\u6613\u4e8e\u89e3\u6790\uff0c\u5e76\u4e14\u8de8\u8bed\u8a00\u652f\u6301\u826f\u597d\u3002\u5728Java\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>org.json<\/code>\u5e93\u6765\u5904\u7406JSON\u6570\u636e\uff0c\u800c\u5728Python\u4e2d\u53ef\u4ee5\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u3002\u901a\u8fc7\u5c06\u6570\u636e\u683c\u5f0f\u5316\u4e3aJSON\uff0c\u53ef\u4ee5\u7b80\u5316\u7f16\u7801\u548c\u89e3\u7801\u7684\u8fc7\u7a0b\u3002<\/p>\n<p><strong>\u5904\u7406Java\u89e3\u7801Python\u5b57\u8282\u4e32\u65f6\u5e38\u89c1\u9519\u8bef\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5728\u89e3\u7801\u8fc7\u7a0b\u4e2d\uff0c\u5e38\u89c1\u7684\u9519\u8bef\u5305\u62ec\u5b57\u7b26\u7f16\u7801\u4e0d\u5339\u914d\u548c\u6570\u636e\u683c\u5f0f\u9519\u8bef\u3002\u786e\u4fdd\u5728Python\u4e2d\u751f\u6210\u5b57\u8282\u4e32\u65f6\u4f7f\u7528\u4e0eJava\u76f8\u540c\u7684\u7f16\u7801\u65b9\u5f0f\u3002\u6b64\u5916\uff0c\u68c0\u67e5\u5b57\u8282\u4e32\u7684\u5b8c\u6574\u6027\u4e5f\u5341\u5206\u91cd\u8981\uff0c\u786e\u4fdd\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u6570\u636e\u4e22\u5931\u6216\u635f\u574f\u3002\u53ef\u4ee5\u901a\u8fc7\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u6355\u6349\u548c\u5904\u7406\u8fd9\u4e9b\u6f5c\u5728\u7684\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Java\u89e3\u7801Python\u5b57\u8282\u4e32\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u9002\u5f53\u7684\u5b57\u7b26\u96c6\u3001\u91c7\u7528\u5408\u9002\u7684\u5e93\u3001\u5904\u7406\u6570\u636e\u6d41 Python\u4e2d\u7684\u5b57\u8282\u4e32\u53ef\u4ee5 [&hellip;]","protected":false},"author":3,"featured_media":1043567,"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\/1043556"}],"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=1043556"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1043556\/revisions"}],"predecessor-version":[{"id":1043568,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1043556\/revisions\/1043568"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1043567"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1043556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1043556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1043556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}