{"id":974822,"date":"2024-12-27T06:08:17","date_gmt":"2024-12-26T22:08:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/974822.html"},"modified":"2024-12-27T06:08:19","modified_gmt":"2024-12-26T22:08:19","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%8f%98ascii","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/974822.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u53d8ascii"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200343\/4c4cbe5a-9483-4c4e-b8fb-9f0c4b0c4ee1.webp\" alt=\"python\u4e2d\u5982\u4f55\u53d8ascii\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3aASCII\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u5c06\u5355\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684ASCII\u7801\u503c\u3001\u4f7f\u7528<code>chr()<\/code>\u51fd\u6570\u5c06ASCII\u7801\u503c\u8f6c\u6362\u56de\u5b57\u7b26\u3001\u4f7f\u7528<code>encode()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\u5e8f\u5217\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u83b7\u53d6\u5b57\u7b26\u7684ASCII\u7801\u503c\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u7f16\u7a0b\u4e2d\uff0c\u5904\u7406\u5b57\u7b26\u548c\u5b83\u4eec\u7684ASCII\u503c\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u4efb\u52a1\u3002\u4e86\u89e3\u5982\u4f55\u5728Python\u4e2d\u8fdb\u884c\u5b57\u7b26\u4e0eASCII\u7801\u7684\u76f8\u4e92\u8f6c\u6362\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u5904\u7406\u6587\u672c\u6570\u636e\u3001\u5b57\u7b26\u7f16\u7801\u548c\u89e3\u7801\u7b49\u64cd\u4f5c\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8Python\u4e2d\u5904\u7406ASCII\u7684\u5404\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u5b9e\u9645\u7684\u4f7f\u7528\u573a\u666f\u548c\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528 <code>ord()<\/code> \u51fd\u6570\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3aASCII<\/p>\n<\/p>\n<p><p><code>ord()<\/code> \u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u5355\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684ASCII\u7801\u503c\u3002<\/p>\n<\/p>\n<p><p>1.1 <code>ord()<\/code> \u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<p><p><code>ord()<\/code> \u51fd\u6570\u7684\u6700\u57fa\u672c\u7528\u6cd5\u662f\u5c06\u4e00\u4e2a\u5b57\u7b26\u4f20\u9012\u7ed9\u5b83\uff0c\u5e76\u8fd4\u56de\u8be5\u5b57\u7b26\u7684ASCII\u7801\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ascii_value = ord(&#39;A&#39;)<\/p>\n<p>print(ascii_value)  # \u8f93\u51fa 65<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5b57\u7b26 <code>&#39;A&#39;<\/code> \u7684ASCII\u7801\u503c\u662f65\u3002<code>ord()<\/code> \u51fd\u6570\u5bf9\u4e8e\u5355\u4e2a\u5b57\u7b26\u662f\u975e\u5e38\u6709\u6548\u7684\uff0c\u53ef\u4ee5\u5feb\u901f\u83b7\u53d6\u5b57\u7b26\u7684ASCII\u503c\u3002<\/p>\n<\/p>\n<p><p>1.2 \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3aASCII\u7801\u5217\u8868<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3aASCII\u7801\u503c\uff0c\u5e76\u4ee5\u5217\u8868\u7684\u5f62\u5f0f\u8fd4\u56de\u3002\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello&quot;<\/p>\n<p>ascii_values = [ord(char) for char in string]<\/p>\n<p>print(ascii_values)  # \u8f93\u51fa [72, 101, 108, 108, 111]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u7b80\u6d01\uff0c\u5e76\u4e14\u80fd\u591f\u5feb\u901f\u5904\u7406\u6574\u4e2a\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528 <code>chr()<\/code> \u51fd\u6570\u5c06ASCII\u8f6c\u6362\u4e3a\u5b57\u7b26<\/p>\n<\/p>\n<p><p><code>chr()<\/code> \u51fd\u6570\u662f\u4e0e <code>ord()<\/code> \u51fd\u6570\u76f8\u5bf9\u5e94\u7684\uff0c\u7528\u4e8e\u5c06ASCII\u7801\u503c\u8f6c\u6362\u56de\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>2.1 <code>chr()<\/code> \u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<p><p><code>chr()<\/code> \u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u6574\u6570\uff08\u5373ASCII\u7801\u503c\uff09\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u5bf9\u5e94\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">char = chr(65)<\/p>\n<p>print(char)  # \u8f93\u51fa &#39;A&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2.2 \u5c06ASCII\u7801\u5217\u8868\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>\u5982\u679c\u6211\u4eec\u6709\u4e00\u4e2aASCII\u7801\u503c\u7684\u5217\u8868\uff0c\u5e76\u5e0c\u671b\u5c06\u5176\u8f6c\u6362\u56de\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>chr()<\/code> \u51fd\u6570\u548c\u5b57\u7b26\u4e32\u7684 <code>join()<\/code> \u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ascii_values = [72, 101, 108, 108, 111]<\/p>\n<p>string = &#39;&#39;.join(chr(value) for value in ascii_values)<\/p>\n<p>print(string)  # \u8f93\u51fa &#39;Hello&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u540c\u6837\u7b80\u6d01\u4e14\u9ad8\u6548\uff0c\u80fd\u591f\u5feb\u901f\u5c06ASCII\u7801\u503c\u5217\u8868\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528 <code>encode()<\/code> \u548c <code>decode()<\/code> \u65b9\u6cd5\u5904\u7406ASCII<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5b57\u7b26\u4e32\u548c\u5b57\u8282\u5e8f\u5217\u4e4b\u95f4\u7684\u8f6c\u6362\u65f6\uff0c<code>encode()<\/code> \u548c <code>decode()<\/code> \u65b9\u6cd5\u4e5f\u53ef\u4ee5\u7528\u4e8eASCII\u7f16\u7801\u3002<\/p>\n<\/p>\n<p><p>3.1 \u5b57\u7b26\u4e32\u5230\u5b57\u8282\u5e8f\u5217\u7684\u8f6c\u6362<\/p>\n<\/p>\n<p><p>\u901a\u8fc7 <code>encode()<\/code> \u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\u5e8f\u5217\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f7f\u7528UTF-8\u7f16\u7801\uff0c\u4f46\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u4e3aASCII\u7f16\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello&quot;<\/p>\n<p>byte_sequence = string.encode(&#39;ascii&#39;)<\/p>\n<p>print(byte_sequence)  # \u8f93\u51fa b&#39;Hello&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3.2 \u5b57\u8282\u5e8f\u5217\u5230\u5b57\u7b26\u4e32\u7684\u8f6c\u6362<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5b57\u8282\u5e8f\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>decode()<\/code> \u65b9\u6cd5\u5c06\u5176\u8f6c\u6362\u56de\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">decoded_string = byte_sequence.decode(&#39;ascii&#39;)<\/p>\n<p>print(decoded_string)  # \u8f93\u51fa &#39;Hello&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\uff0c\u5904\u7406\u5b57\u7b26\u548cASCII\u7801\u7684\u8f6c\u6362\u6709\u8bb8\u591a\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>4.1 \u6570\u636e\u4f20\u8f93\u548c\u5b58\u50a8<\/p>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u6216\u5b58\u50a8\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5c06\u6587\u672c\u6570\u636e\u8f6c\u6362\u4e3a\u5b57\u8282\u5e8f\u5217\uff0c\u4ee5\u4fbf\u5728\u4e0d\u540c\u7cfb\u7edf\u95f4\u4f20\u8f93\u6216\u5728\u6587\u4ef6\u4e2d\u5b58\u50a8\u3002ASCII\u7f16\u7801\u662f\u4e00\u79cd\u7b80\u5355\u800c\u6709\u6548\u7684\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>4.2 \u52a0\u5bc6\u548c\u89e3\u5bc6<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u52a0\u5bc6\u7b97\u6cd5\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u6587\u672c\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176ASCII\u7801\u503c\u8fdb\u884c\u5904\u7406\uff0c\u7136\u540e\u518d\u8f6c\u6362\u56de\u5b57\u7b26\u3002\u8fd9\u79cd\u64cd\u4f5c\u5728\u7b80\u5355\u7684\u52a0\u5bc6\u7b97\u6cd5\u4e2d\u5f88\u5e38\u89c1\u3002<\/p>\n<\/p>\n<p><p>4.3 \u6587\u672c\u5904\u7406\u548c\u5206\u6790<\/p>\n<\/p>\n<p><p>\u5728\u6587\u672c\u5904\u7406\u548c\u5206\u6790\u4e2d\uff0c\u5b57\u7b26\u7684ASCII\u7801\u503c\u53ef\u4ee5\u7528\u4e8e\u7edf\u8ba1\u5206\u6790\u3001\u5b57\u7b26\u8fc7\u6ee4\u7b49\u3002\u4f8b\u5982\uff0c\u8fc7\u6ee4\u6389\u975e\u5b57\u6bcd\u5b57\u7b26\u6216\u8fdb\u884c\u5b57\u7b26\u9891\u7387\u7edf\u8ba1\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5b57\u7b26\u548cASCII\u7801\u8f6c\u6362\u65f6\uff0c\u6709\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\u9700\u8981\u8003\u8651\u3002<\/p>\n<\/p>\n<p><p>5.1 \u5b57\u7b26\u96c6\u8303\u56f4<\/p>\n<\/p>\n<p><p>ASCII\u5b57\u7b26\u96c6\u8303\u56f4\u4ec5\u9650\u4e8e0\u5230127\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u53ea\u80fd\u8868\u793a\u57fa\u672c\u7684\u62c9\u4e01\u5b57\u7b26\u3002\u5982\u679c\u9700\u8981\u5904\u7406\u5176\u4ed6\u5b57\u7b26\u96c6\uff08\u5982Unicode\u5b57\u7b26\uff09\uff0c\u9700\u8981\u8003\u8651\u66f4\u590d\u6742\u7684\u7f16\u7801\u65b9\u6848\u3002<\/p>\n<\/p>\n<p><p>5.2 \u9519\u8bef\u5904\u7406<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528 <code>ord()<\/code> \u548c <code>chr()<\/code> \u51fd\u6570\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u8f93\u5165\u7684\u5b57\u7b26\u548cASCII\u7801\u503c\u5728\u6709\u6548\u8303\u56f4\u5185\uff0c\u5426\u5219\u4f1a\u5f15\u53d1\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><p>5.3 \u7f16\u7801\u517c\u5bb9\u6027<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528 <code>encode()<\/code> \u548c <code>decode()<\/code> \u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u6307\u5b9a\u7684\u7f16\u7801\u4e0e\u6570\u636e\u517c\u5bb9\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7f16\u7801\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython\u4e2d\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u5b57\u7b26\u548c\u5b83\u4eec\u7684ASCII\u7801\u503c\uff0c\u5305\u62ec <code>ord()<\/code> \u548c <code>chr()<\/code> \u51fd\u6570\u3001<code>encode()<\/code> \u548c <code>decode()<\/code> \u65b9\u6cd5\u7b49\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5728\u6587\u672c\u5904\u7406\u3001\u6570\u636e\u4f20\u8f93\u548c\u5b58\u50a8\u7b49\u65b9\u9762\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u901a\u8fc7\u5bf9\u8fd9\u4e9b\u65b9\u6cd5\u7684\u638c\u63e1\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u5904\u7406\u548c\u64cd\u4f5c\u6587\u672c\u6570\u636e\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\u4e3aASCII\u7f16\u7801\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>ord()<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u5b57\u7b26\u7684ASCII\u503c\uff0c\u7ed3\u5408\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u8f7b\u677e\u5c06\u6574\u4e2a\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3aASCII\u7f16\u7801\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3aASCII\u5217\u8868\uff1a  <\/p>\n<pre><code class=\"language-python\">ascii_values = [ord(char) for char in your_string]\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c<code>ascii_values<\/code>\u5c06\u5305\u542b\u5b57\u7b26\u4e32\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u7684ASCII\u503c\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u7684\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u975eASCII\u5b57\u7b26\uff0c\u5e94\u8be5\u600e\u4e48\u5904\u7406\uff1f<\/strong><br \/>\u5bf9\u4e8e\u5305\u542b\u975eASCII\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528<code>encode()<\/code>\u65b9\u6cd5\u5c06\u5176\u8f6c\u6362\u4e3aASCII\u7f16\u7801\u3002\u9700\u8981\u6307\u5b9a\u9519\u8bef\u5904\u7406\u7b56\u7565\uff0c\u5982<code>ignore<\/code>\u6765\u5ffd\u7565\u975eASCII\u5b57\u7b26\uff0c\u6216<code>replace<\/code>\u6765\u66ff\u6362\u4e3a\u95ee\u53f7\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">ascii_string = your_string.encode(&#39;ascii&#39;, &#39;ignore&#39;).decode(&#39;ascii&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u6240\u6709\u975eASCII\u5b57\u7b26\u5c06\u88ab\u5ffd\u7565\uff0c\u6700\u7ec8\u53ea\u4fdd\u7559ASCII\u5b57\u7b26\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06ASCII\u7801\u8f6c\u6362\u56de\u5b57\u7b26\uff1f<\/strong><br \/>\u8981\u5c06ASCII\u7801\u8f6c\u6362\u56de\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528<code>chr()<\/code>\u51fd\u6570\u3002\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\u6216\u5faa\u73af\uff0c\u53ef\u4ee5\u5c06ASCII\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">original_string = &#39;&#39;.join(chr(num) for num in ascii_values)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u628aASCII\u503c\u5217\u8868<code>ascii_values<\/code>\u91cd\u65b0\u62fc\u63a5\u6210\u539f\u59cb\u5b57\u7b26\u4e32\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3aASCII\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528ord()\u51fd\u6570\u5c06\u5355\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684ASCII\u7801\u503c\u3001\u4f7f\u7528 [&hellip;]","protected":false},"author":3,"featured_media":974828,"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\/974822"}],"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=974822"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974822\/revisions"}],"predecessor-version":[{"id":974830,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974822\/revisions\/974830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/974828"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=974822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=974822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=974822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}