{"id":1097818,"date":"2025-01-08T15:15:27","date_gmt":"2025-01-08T07:15:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097818.html"},"modified":"2025-01-08T15:15:30","modified_gmt":"2025-01-08T07:15:30","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e6%95%b4%e6%95%b0%e8%bd%ac%e6%8d%a2%e4%b8%ba%e5%ad%97%e8%8a%82-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1097818.html","title":{"rendered":"Python\u5982\u4f55\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212424\/00a95868-ffc8-44f4-92dc-8b4584018105.webp\" alt=\"Python\u5982\u4f55\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5185\u7f6e\u7684 <code>to_bytes()<\/code> \u65b9\u6cd5\u3001<code>struct<\/code> \u6a21\u5757\u3001\u4ee5\u53ca <code>array<\/code> \u6a21\u5757\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282\u3002<\/strong> \u5176\u4e2d\uff0c<code>to_bytes()<\/code> \u65b9\u6cd5\u662f\u6700\u5e38\u7528\u4e14\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u5bf9 <code>to_bytes()<\/code> \u65b9\u6cd5\u7684\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528 <code>to_bytes()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>to_bytes()<\/code> \u65b9\u6cd5\u662f Python \u63d0\u4f9b\u7684\u4e00\u4e2a\u5185\u7f6e\u65b9\u6cd5\uff0c\u7528\u4e8e\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282\u3002\u5176\u8bed\u6cd5\u4e3a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">int.to_bytes(length, byteorder, *, signed=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>length<\/strong>: \u5b57\u8282\u7684\u957f\u5ea6\u3002<\/li>\n<li><strong>byteorder<\/strong>: \u5b57\u8282\u987a\u5e8f\uff0c\u53ef\u4ee5\u662f &#39;big&#39; \u6216 &#39;little&#39;\u3002<\/li>\n<li><strong>signed<\/strong>: \u662f\u5426\u8868\u793a\u6709\u7b26\u53f7\u6570\uff0c\u9ed8\u8ba4\u4e3a False\u3002<\/li>\n<\/ul>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 1024<\/p>\n<p>byte_representation = num.to_bytes(4, byteorder=&#39;big&#39;)<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6574\u6570 1024 \u88ab\u8f6c\u6362\u6210\u4e86 4 \u4e2a\u5b57\u8282\u7684\u5b57\u8282\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528 <code>struct<\/code> \u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>struct<\/code> \u6a21\u5757\u53ef\u4ee5\u5c06\u6574\u6570\u6253\u5305\u6210\u5b57\u8282\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u5904\u7406\u5176\u4ed6\u590d\u6742\u7684\u6570\u636e\u7c7b\u578b\u3002\u5176\u57fa\u672c\u7528\u6cd5\u662f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import struct<\/p>\n<p>num = 1024<\/p>\n<p>byte_representation = struct.pack(&#39;&gt;I&#39;, num)<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>&#39;&gt;I&#39;<\/code> \u8868\u793a\u5927\u7aef\u5b57\u8282\u5e8f\u7684\u65e0\u7b26\u53f7\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528 <code>array<\/code> \u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>array<\/code> \u6a21\u5757\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6570\u7ec4\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u8282\u5bf9\u8c61\u3002\u5176\u57fa\u672c\u7528\u6cd5\u662f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import array<\/p>\n<p>num = 1024<\/p>\n<p>arr = array.array(&#39;I&#39;, [num])<\/p>\n<p>byte_representation = arr.tobytes()<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c&#39;I&#39; \u8868\u793a\u65e0\u7b26\u53f7\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u901a\u8fc7 <code>to_bytes()<\/code> \u65b9\u6cd5<\/h2>\n<\/p>\n<p><h3>1. \u4f7f\u7528\u793a\u4f8b<\/h3>\n<\/p>\n<p><p><code>to_bytes()<\/code> \u65b9\u6cd5\u7684\u4e3b\u8981\u4f18\u70b9\u662f\u5176\u7b80\u6d01\u6027\u548c\u6613\u7528\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 1024<\/p>\n<p>byte_representation = num.to_bytes(4, byteorder=&#39;big&#39;)<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6574\u6570 1024 \u88ab\u8f6c\u6362\u6210\u4e86 4 \u4e2a\u5b57\u8282\u7684\u5b57\u8282\u5bf9\u8c61\u3002<code>byteorder=&#39;big&#39;<\/code> \u8868\u793a\u5927\u7aef\u5b57\u8282\u5e8f\uff0c\u8fd9\u610f\u5473\u7740\u6700\u9ad8\u6709\u6548\u5b57\u8282\uff08MSB\uff09\u5728\u5b57\u8282\u5e8f\u5217\u7684\u5f00\u59cb\u3002<\/p>\n<\/p>\n<p><h3>2. \u53c2\u6570\u8be6\u89e3<\/h3>\n<\/p>\n<ul>\n<li><strong>length<\/strong>: \u5fc5\u987b\u6307\u5b9a\u8f6c\u6362\u540e\u7684\u5b57\u8282\u957f\u5ea6\u3002\u5982\u679c\u6574\u6570\u65e0\u6cd5\u5728\u6307\u5b9a\u957f\u5ea6\u5185\u8868\u793a\uff0c\u5219\u4f1a\u5f15\u53d1 OverflowError\u3002<\/li>\n<li><strong>byteorder<\/strong>: \u51b3\u5b9a\u4e86\u5b57\u8282\u7684\u987a\u5e8f\u3002&#39;big&#39; \u8868\u793a\u5927\u7aef\u5b57\u8282\u5e8f\uff0c&#39;little&#39; \u8868\u793a\u5c0f\u7aef\u5b57\u8282\u5e8f\u3002<\/li>\n<li><strong>signed<\/strong>: \u53ef\u9009\u53c2\u6570\uff0c\u9ed8\u8ba4\u503c\u4e3a False\u3002\u5982\u679c\u8bbe\u7f6e\u4e3a True\uff0c\u5219\u53ef\u4ee5\u5904\u7406\u6709\u7b26\u53f7\u6574\u6570\u3002<\/li>\n<\/ul>\n<p><p>\u4f8b\u5982\uff0c\u5bf9\u4e8e\u8d1f\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = -1024<\/p>\n<p>byte_representation = num.to_bytes(4, byteorder=&#39;big&#39;, signed=True)<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>signed=True<\/code> \u4f7f\u5f97\u65b9\u6cd5\u53ef\u4ee5\u6b63\u786e\u5904\u7406\u8d1f\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u901a\u8fc7 <code>struct<\/code> \u6a21\u5757<\/h2>\n<\/p>\n<p><h3>1. \u4f7f\u7528\u793a\u4f8b<\/h3>\n<\/p>\n<p><p><code>struct<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u5904\u7406\u5404\u79cd\u590d\u6742\u7684\u6570\u636e\u7c7b\u578b\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528 <code>struct.pack()<\/code> \u65b9\u6cd5\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import struct<\/p>\n<p>num = 1024<\/p>\n<p>byte_representation = struct.pack(&#39;&gt;I&#39;, num)<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>&#39;&gt;I&#39;<\/code> \u8868\u793a\u5927\u7aef\u5b57\u8282\u5e8f\u7684\u65e0\u7b26\u53f7\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h3>2. \u53c2\u6570\u8be6\u89e3<\/h3>\n<\/p>\n<ul>\n<li><strong>format<\/strong>: \u683c\u5f0f\u5b57\u7b26\u4e32\uff0c\u5b9a\u4e49\u4e86\u6570\u636e\u7684\u7c7b\u578b\u548c\u5b57\u8282\u987a\u5e8f\u3002\u5e38\u89c1\u7684\u683c\u5f0f\u5b57\u7b26\u5305\u62ec &#39;I&#39;\uff08\u65e0\u7b26\u53f7\u6574\u6570\uff09\u3001&#39;i&#39;\uff08\u6709\u7b26\u53f7\u6574\u6570\uff09\u3001&#39;f&#39;\uff08\u6d6e\u70b9\u6570\uff09\u7b49\u3002<\/li>\n<li><strong>value<\/strong>: \u8981\u6253\u5305\u7684\u503c\u3002<\/li>\n<\/ul>\n<p><p>\u4f8b\u5982\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6574\u6570\u7684\u7ed3\u6784\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import struct<\/p>\n<p>values = (1024, 2048, 4096)<\/p>\n<p>byte_representation = struct.pack(&#39;&gt;3I&#39;, *values)<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>&#39;&gt;3I&#39;<\/code> \u8868\u793a\u4e09\u4e2a\u5927\u7aef\u5b57\u8282\u5e8f\u7684\u65e0\u7b26\u53f7\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u901a\u8fc7 <code>array<\/code> \u6a21\u5757<\/h2>\n<\/p>\n<p><h3>1. \u4f7f\u7528\u793a\u4f8b<\/h3>\n<\/p>\n<p><p><code>array<\/code> \u6a21\u5757\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u5927\u91cf\u540c\u7c7b\u578b\u6570\u636e\u7684\u573a\u666f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528 <code>array.array()<\/code> \u548c <code>tobytes()<\/code> \u65b9\u6cd5\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import array<\/p>\n<p>num = 1024<\/p>\n<p>arr = array.array(&#39;I&#39;, [num])<\/p>\n<p>byte_representation = arr.tobytes()<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c&#39;I&#39; \u8868\u793a\u65e0\u7b26\u53f7\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h3>2. \u53c2\u6570\u8be6\u89e3<\/h3>\n<\/p>\n<ul>\n<li><strong>typecode<\/strong>: \u6307\u5b9a\u6570\u7ec4\u4e2d\u5143\u7d20\u7684\u7c7b\u578b\u3002\u5e38\u89c1\u7684\u7c7b\u578b\u4ee3\u7801\u5305\u62ec &#39;I&#39;\uff08\u65e0\u7b26\u53f7\u6574\u6570\uff09\u3001&#39;i&#39;\uff08\u6709\u7b26\u53f7\u6574\u6570\uff09\u3001&#39;f&#39;\uff08\u6d6e\u70b9\u6570\uff09\u7b49\u3002<\/li>\n<li><strong>initializer<\/strong>: \u7528\u4e8e\u521d\u59cb\u5316\u6570\u7ec4\u7684\u53ef\u8fed\u4ee3\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n<p><p>\u4f8b\u5982\uff0c\u5bf9\u4e8e\u5305\u542b\u591a\u4e2a\u6574\u6570\u7684\u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import array<\/p>\n<p>nums = [1024, 2048, 4096]<\/p>\n<p>arr = array.array(&#39;I&#39;, nums)<\/p>\n<p>byte_representation = arr.tobytes()<\/p>\n<p>print(byte_representation)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6570\u7ec4 <code>arr<\/code> \u5305\u542b\u4e86\u591a\u4e2a\u65e0\u7b26\u53f7\u6574\u6570\uff0c\u5e76\u88ab\u8f6c\u6362\u6210\u5b57\u8282\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u7efc\u5408\u5bf9\u6bd4<\/h2>\n<\/p>\n<p><h3>1. \u6613\u7528\u6027<\/h3>\n<\/p>\n<ul>\n<li><strong>to_bytes() \u65b9\u6cd5<\/strong>: \u6700\u6613\u7528\uff0c\u9002\u5408\u7b80\u5355\u7684\u6574\u6570\u5230\u5b57\u8282\u7684\u8f6c\u6362\u3002<\/li>\n<li><strong>struct \u6a21\u5757<\/strong>: \u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\uff0c\u9002\u5408\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u3002<\/li>\n<li><strong>array \u6a21\u5757<\/strong>: \u9002\u5408\u5904\u7406\u5927\u91cf\u540c\u7c7b\u578b\u6570\u636e\u3002<\/li>\n<\/ul>\n<p><h3>2. \u6027\u80fd<\/h3>\n<\/p>\n<p><p>\u5728\u6027\u80fd\u65b9\u9762\uff0c<code>to_bytes()<\/code> \u65b9\u6cd5\u548c <code>struct<\/code> \u6a21\u5757\u7684\u6027\u80fd\u76f8\u5f53\uff0c<code>array<\/code> \u6a21\u5757\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u8868\u73b0\u66f4\u597d\u3002<\/p>\n<\/p>\n<p><h3>3. \u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<ul>\n<li><strong>to_bytes() \u65b9\u6cd5<\/strong>: \u9002\u7528\u4e8e\u7b80\u5355\u7684\u6574\u6570\u8f6c\u6362\u3002<\/li>\n<li><strong>struct \u6a21\u5757<\/strong>: \u9002\u7528\u4e8e\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u548c\u9700\u8981\u66f4\u591a\u63a7\u5236\u7684\u573a\u666f\u3002<\/li>\n<li><strong>array \u6a21\u5757<\/strong>: \u9002\u7528\u4e8e\u5904\u7406\u5927\u91cf\u540c\u7c7b\u578b\u6570\u636e\u7684\u573a\u666f\u3002<\/li>\n<\/ul>\n<p><h2>\u7ed3\u8bba<\/h2>\n<\/p>\n<p><p>\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6cd5\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u9700\u6c42\uff0c<code>to_bytes()<\/code> \u65b9\u6cd5\u662f\u6700\u7b80\u6d01\u548c\u76f4\u63a5\u7684\u9009\u62e9\uff1b\u5bf9\u4e8e\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c<code>struct<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\uff1b\u800c\u5bf9\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u540c\u7c7b\u578b\u6570\u636e\uff0c<code>array<\/code> \u6a21\u5757\u662f\u6700\u4f73\u9009\u62e9\u3002\u901a\u8fc7\u7406\u89e3\u548c\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5904\u7406\u6570\u636e\u8f6c\u6362\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u8282\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>int.to_bytes()<\/code>\u65b9\u6cd5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u9700\u8981\u6307\u5b9a\u5b57\u8282\u6570\u548c\u5b57\u8282\u5e8f\uff08\u5927\u7aef\u6216\u5c0f\u7aef\uff09\u3002\u4f8b\u5982\uff0c<code>(123).to_bytes(2, byteorder=&#39;big&#39;)<\/code>\u5c06\u6574\u6570123\u8f6c\u6362\u4e3a2\u4e2a\u5b57\u8282\uff0c\u91c7\u7528\u5927\u7aef\u5b57\u8282\u5e8f\u3002<\/p>\n<p><strong>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u5b57\u8282\u6570\u6709\u4ec0\u4e48\u9650\u5236\uff1f<\/strong><br \/>\u5b57\u8282\u6570\u9700\u8981\u8db3\u591f\u5927\uff0c\u4ee5\u5bb9\u7eb3\u8981\u8f6c\u6362\u7684\u6574\u6570\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u4e00\u4e2a8\u4f4d\u7684\u5b57\u8282\uff0c\u6700\u5927\u53ef\u4ee5\u8868\u793a255\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9\u5b57\u8282\u6570\u65f6\uff0c\u786e\u4fdd\u5b83\u80fd\u591f\u5904\u7406\u6574\u6570\u7684\u5927\u5c0f\u3002\u5982\u679c\u8d85\u51fa\u8303\u56f4\uff0c\u5c06\u4f1a\u5f15\u53d1<code>OverflowError<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u4ece\u5b57\u8282\u8f6c\u6362\u56de\u6574\u6570\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>int.from_bytes()<\/code>\u65b9\u6cd5\u5c06\u5b57\u8282\u8f6c\u6362\u56de\u6574\u6570\u3002\u8fd9\u4e2a\u65b9\u6cd5\u540c\u6837\u9700\u8981\u6307\u5b9a\u5b57\u8282\u5e8f\u3002\u4f8b\u5982\uff0c<code>int.from_bytes(b&#39;\\x7b&#39;, byteorder=&#39;big&#39;)<\/code>\u5c06\u5b57\u8282<code>\\x7b<\/code>\u8f6c\u6362\u56de\u6574\u6570123\u3002\u786e\u4fdd\u5b57\u8282\u5e8f\u4e0e\u8f6c\u6362\u65f6\u4f7f\u7528\u7684\u5b57\u8282\u5e8f\u4e00\u81f4\uff0c\u4ee5\u907f\u514d\u8f6c\u6362\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5185\u7f6e\u7684 to_bytes() \u65b9\u6cd5\u3001struct \u6a21\u5757\u3001\u4ee5\u53ca array \u6a21\u5757\u5c06\u6574\u6570\u8f6c [&hellip;]","protected":false},"author":3,"featured_media":1097824,"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\/1097818"}],"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=1097818"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097818\/revisions"}],"predecessor-version":[{"id":1097825,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097818\/revisions\/1097825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1097824"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1097818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1097818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1097818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}