{"id":1144402,"date":"2025-01-08T22:59:25","date_gmt":"2025-01-08T14:59:25","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1144402.html"},"modified":"2025-01-08T22:59:30","modified_gmt":"2025-01-08T14:59:30","slug":"python%e5%a6%82%e4%bd%95%e8%ae%a9%e5%ad%97%e7%ac%a6%e4%bb%a5%e5%8d%81%e5%85%ad%e8%bf%9b%e5%88%b6%e6%98%be%e7%a4%ba%e5%87%ba%e6%9d%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1144402.html","title":{"rendered":"python\u5982\u4f55\u8ba9\u5b57\u7b26\u4ee5\u5341\u516d\u8fdb\u5236\u663e\u793a\u51fa\u6765"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181516\/50457570-a586-4690-ba4e-6271d30114dd.webp\" alt=\"python\u5982\u4f55\u8ba9\u5b57\u7b26\u4ee5\u5341\u516d\u8fdb\u5236\u663e\u793a\u51fa\u6765\" \/><\/p>\n<p><p> <strong>Python\u8ba9\u5b57\u7b26\u4ee5\u5341\u516d\u8fdb\u5236\u663e\u793a\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684<code>hex()<\/code>\u51fd\u6570\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u4ee5\u53ca<code>binascii<\/code>\u6a21\u5757\u3002<\/strong> \u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0c<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>hex()<\/code><\/strong> \u662f\u6700\u5e38\u89c1\u4e14\u7b80\u4fbf\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u8be6\u7ec6\u89e3\u91ca\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>hex()<\/code><\/h3>\n<\/p>\n<p><p>Python\u7684<code>hex()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\u3002\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u6574\u6570\uff0c\u4f46\u901a\u8fc7\u4e00\u4e9b\u8f6c\u6362\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u663e\u793a\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176ASCII\u7801\u5bf9\u5e94\u7684\u5341\u516d\u8fdb\u5236\u8868\u793a<\/p>\n<p>char = &#39;A&#39;<\/p>\n<p>hex_representation = hex(ord(char))<\/p>\n<p>print(hex_representation)  # \u8f93\u51fa\uff1a0x41<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176ASCII\u7801\uff0c\u7136\u540e\u4f7f\u7528<code>hex()<\/code>\u51fd\u6570\u5c06\u8be5ASCII\u7801\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">char = &#39;A&#39;<\/p>\n<p>hex_representation = format(ord(char), &#39;x&#39;)<\/p>\n<p>print(hex_representation)  # \u8f93\u51fa\uff1a41<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u4f7f\u7528<code>format()<\/code>\u51fd\u6570\uff0c\u5176\u4e2d<code>&#39;x&#39;<\/code>\u8868\u793a\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5341\u516d\u8fdb\u5236\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>binascii<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>binascii<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u7528\u4e8e\u5904\u7406\u4e8c\u8fdb\u5236\u548cASCII\u5b57\u7b26\u4e4b\u95f4\u7684\u8f6c\u6362\u3002\u7279\u522b\u662f\u5f53\u6211\u4eec\u9700\u8981\u5904\u7406\u591a\u4e2a\u5b57\u7b26\u65f6\uff0c\u5b83\u663e\u5f97\u5c24\u4e3a\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import binascii<\/p>\n<h2><strong>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a<\/strong><\/h2>\n<p>string = &quot;Hello&quot;<\/p>\n<p>hex_representation = binascii.hexlify(string.encode())<\/p>\n<p>print(hex_representation)  # \u8f93\u51fa\uff1ab&#39;48656c6c6f&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3a\u5b57\u8282\uff0c\u7136\u540e\u4f7f\u7528<code>binascii.hexlify()<\/code>\u51fd\u6570\u5c06\u5b57\u8282\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5c06\u5341\u516d\u8fdb\u5236\u8868\u793a\u8f6c\u6362\u56de\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u4e86\u89e3\u5982\u4f55\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u540e\uff0c\u4e86\u89e3\u5982\u4f55\u5c06\u5176\u8f6c\u6362\u56de\u6765\u4e5f\u662f\u5f88\u6709\u7528\u7684\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">hex_representation = &#39;41&#39;<\/p>\n<p>char = chr(int(hex_representation, 16))<\/p>\n<p>print(char)  # \u8f93\u51fa\uff1aA<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u5c06\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u7136\u540e\u4f7f\u7528<code>chr()<\/code>\u51fd\u6570\u5c06\u8be5\u6574\u6570\u8f6c\u6362\u56de\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u7406\u89e3\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u5341\u516d\u8fdb\u5236\u8868\u793a\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u591a\u79cd\u5b9e\u9645\u5e94\u7528\u4e2d\u66f4\u597d\u5730\u5904\u7406\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u7f51\u7edc\u7f16\u7a0b<\/h4>\n<\/p>\n<p><p>\u5728\u7f51\u7edc\u7f16\u7a0b\u4e2d\uff0c\u6570\u636e\u901a\u5e38\u4ee5\u4e8c\u8fdb\u5236\u683c\u5f0f\u4f20\u8f93\u3002\u5c06\u6570\u636e\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u53ef\u4ee5\u65b9\u4fbf\u6211\u4eec\u8fdb\u884c\u8c03\u8bd5\u548c\u65e5\u5fd7\u8bb0\u5f55\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6587\u4ef6\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5904\u7406\u4e8c\u8fdb\u5236\u6587\u4ef6\u65f6\uff0c\u67e5\u770b\u5176\u5341\u516d\u8fdb\u5236\u8868\u793a\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u7406\u89e3\u6587\u4ef6\u7684\u7ed3\u6784\u548c\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5b89\u5168\u4e0e\u52a0\u5bc6<\/h4>\n<\/p>\n<p><p>\u5728\u5b89\u5168\u548c\u52a0\u5bc6\u9886\u57df\uff0c\u6570\u636e\u901a\u5e38\u4ee5\u5341\u516d\u8fdb\u5236\u8868\u793a\u8fdb\u884c\u5904\u7406\u548c\u4f20\u8f93\uff0c\u4f8b\u5982\u5728\u6563\u5217\u7b97\u6cd5\u548c\u52a0\u5bc6\u7b97\u6cd5\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u8fdb\u9636\u6280\u5de7<\/h3>\n<\/p>\n<p><p>\u7406\u89e3\u57fa\u672c\u7684\u5b57\u7b26\u548c\u5341\u516d\u8fdb\u5236\u8f6c\u6362\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u63a2\u7d22\u66f4\u591a\u8fdb\u9636\u6280\u5de7\uff0c\u4ee5\u63d0\u5347\u6211\u4eec\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u81ea\u5b9a\u4e49\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u4e3a\u7b80\u5316\u91cd\u590d\u64cd\u4f5c\uff0c\u6211\u4eec\u53ef\u4ee5\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5904\u7406\u5b57\u7b26\u548c\u5341\u516d\u8fdb\u5236\u4e4b\u95f4\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def char_to_hex(char):<\/p>\n<p>    return format(ord(char), &#39;x&#39;)<\/p>\n<p>def hex_to_char(hex_representation):<\/p>\n<p>    return chr(int(hex_representation, 16))<\/p>\n<h2><strong>\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong><\/h2>\n<p>print(char_to_hex(&#39;A&#39;))  # \u8f93\u51fa\uff1a41<\/p>\n<p>print(hex_to_char(&#39;41&#39;))  # \u8f93\u51fa\uff1aA<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6279\u91cf\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5904\u7406\u591a\u4e2a\u5b57\u7b26\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216\u5faa\u73af\u6765\u6279\u91cf\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a<\/p>\n<p>string = &quot;Hello&quot;<\/p>\n<p>hex_representation = [format(ord(char), &#39;x&#39;) for char in string]<\/p>\n<p>print(hex_representation)  # \u8f93\u51fa\uff1a[&#39;48&#39;, &#39;65&#39;, &#39;6c&#39;, &#39;6c&#39;, &#39;6f&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u6027\u80fd\u4f18\u5316<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u6210\u4e3a\u4e00\u4e2a\u95ee\u9898\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u548c\u7b97\u6cd5\u6765\u4f18\u5316\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4f7f\u7528<code>bytearray<\/code>\u548c<code>memoryview<\/code>\u6765\u51cf\u5c11\u5185\u5b58\u590d\u5236\u548c\u63d0\u9ad8\u5904\u7406\u901f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import binascii<\/p>\n<h2><strong>\u4f7f\u7528bytearray\u548cmemoryview\u6765\u5904\u7406\u5927\u6570\u636e<\/strong><\/h2>\n<p>data = bytearray(b&#39;Hello World&#39;)<\/p>\n<p>hex_representation = binascii.hexlify(data)<\/p>\n<p>print(hex_representation)  # \u8f93\u51fa\uff1ab&#39;48656c6c6f20576f726c64&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u901a\u8fc7\u7406\u89e3\u548c\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u66f4\u7075\u6d3b\u5730\u5904\u7406\u548c\u663e\u793a\u6570\u636e\u3002\u8fd9\u4e0d\u4ec5\u6709\u52a9\u4e8e\u63d0\u5347\u6211\u4eec\u7684\u7f16\u7a0b\u6280\u5de7\uff0c\u8fd8\u80fd\u5728\u8c03\u8bd5\u548c\u6570\u636e\u5206\u6790\u4e2d\u63d0\u4f9b\u66f4\u591a\u4fbf\u5229\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u6280\u672f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>encode<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\uff0c\u7136\u540e\u4f7f\u7528<code>hex<\/code>\u65b9\u6cd5\u5c06\u5b57\u8282\u8f6c\u6362\u4e3a\u5341\u516d\u8fdb\u5236\u8868\u793a\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">string = &quot;Hello&quot;\nhex_string = string.encode(&#39;utf-8&#39;).hex()\nprint(hex_string)  # \u8f93\u51fa: 48656c6c6f\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u80fd\u5f97\u5230\u5b57\u7b26\u4e32\u201cHello\u201d\u7684\u5341\u516d\u8fdb\u5236\u8868\u793a\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5c06\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u56de\u539f\u59cb\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>bytes.fromhex()<\/code>\u65b9\u6cd5\u5c06\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\uff0c\u518d\u901a\u8fc7<code>decode<\/code>\u65b9\u6cd5\u5c06\u5b57\u8282\u8f6c\u6362\u56de\u539f\u59cb\u5b57\u7b26\u4e32\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">hex_string = &quot;48656c6c6f&quot;\noriginal_string = bytes.fromhex(hex_string).decode(&#39;utf-8&#39;)\nprint(original_string)  # \u8f93\u51fa: Hello\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u6709\u6548\u5730\u6062\u590d\u539f\u59cb\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u5904\u7406\u4e0d\u540c\u7f16\u7801\u65b9\u5f0f\u4e0b\u7684\u5341\u516d\u8fdb\u5236\u8f6c\u6362\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u5341\u516d\u8fdb\u5236\u8f6c\u6362\u65f6\uff0c\u5efa\u8bae\u660e\u786e\u6307\u5b9a\u7f16\u7801\u65b9\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>utf-8<\/code>\u7f16\u7801\u901a\u5e38\u80fd\u591f\u6db5\u76d6\u5927\u591a\u6570\u5b57\u7b26\u4e32\u7684\u9700\u6c42\u3002\u5bf9\u4e8e\u5176\u4ed6\u7f16\u7801\uff0c\u5982<code>ascii<\/code>\u6216<code>latin1<\/code>\uff0c\u5728\u8f6c\u6362\u65f6\u9700\u8981\u786e\u4fdd\u5b57\u7b26\u4e32\u7684\u5185\u5bb9\u7b26\u5408\u76f8\u5e94\u7684\u7f16\u7801\u6807\u51c6\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">string = &quot;\u4f60\u597d&quot;\nhex_string = string.encode(&#39;utf-8&#39;).hex()\nprint(hex_string)  # \u8f93\u51fa: e4bda0e5a5bd\n<\/code><\/pre>\n<p>\u786e\u4fdd\u5728\u5904\u7406\u4e0d\u540c\u8bed\u8a00\u548c\u5b57\u7b26\u96c6\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u7f16\u7801\u65b9\u5f0f\uff0c\u4ee5\u907f\u514d\u51fa\u73b0\u7f16\u7801\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8ba9\u5b57\u7b26\u4ee5\u5341\u516d\u8fdb\u5236\u663e\u793a\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684hex()\u51fd\u6570\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u4ee5\u53cabinascii\u6a21\u5757\u3002 \u5728 [&hellip;]","protected":false},"author":3,"featured_media":1144419,"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\/1144402"}],"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=1144402"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1144402\/revisions"}],"predecessor-version":[{"id":1144422,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1144402\/revisions\/1144422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1144419"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1144402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1144402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1144402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}