{"id":1046884,"date":"2024-12-31T13:37:38","date_gmt":"2024-12-31T05:37:38","guid":{"rendered":""},"modified":"2024-12-31T13:37:45","modified_gmt":"2024-12-31T05:37:45","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%baa%e7%9a%84ascii%e7%a0%81%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1046884.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51faa\u7684ascii\u7801\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/f45bce12-1a5b-4d7e-92d3-3a570a678887.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u8f93\u51faa\u7684ascii\u7801\u503c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u8f93\u51fa\u5b57\u7b26&#39;a&#39;\u7684ASCII\u7801\u503c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528ord()\u51fd\u6570\u3001\u793a\u4f8b\u5982\u4e0b\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ascii_value = ord(&#39;a&#39;)<\/p>\n<p>print(ascii_value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>ord(&#39;a&#39;)<\/code>\u51fd\u6570\u4f1a\u8fd4\u56de\u5b57\u7b26&#39;a&#39;\u7684ASCII\u7801\u503c\uff0c\u5e76\u5c06\u5176\u8d4b\u503c\u7ed9\u53d8\u91cf<code>ascii_value<\/code>\u3002\u7136\u540e\uff0c<code>print(ascii_value)<\/code>\u4f1a\u6253\u5370\u51faASCII\u7801\u503c97\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001Python\u4e2d\u7684ASCII\u7801\u6982\u8ff0<\/h3>\n<\/p>\n<p><p>ASCII\u7801\uff08American Standard Code for Information Interchange\uff09\u662f\u4e00\u79cd\u5b57\u7b26\u7f16\u7801\u6807\u51c6\uff0c\u7528\u4e8e\u8868\u793a\u6587\u672c\u4e2d\u7684\u5b57\u7b26\u3002\u6bcf\u4e2a\u5b57\u7b26\u5bf9\u5e94\u4e00\u4e2a\u552f\u4e00\u7684\u6574\u6570\u503c\uff0c\u79f0\u4e3a\u5176ASCII\u7801\u503c\u3002\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>ord()<\/code>\u548c<code>chr()<\/code>\u6765\u5904\u7406ASCII\u7801\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>ord()\u51fd\u6570<\/strong>\uff1a\u6b64\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u5b57\u7b26\u7684ASCII\u7801\u503c\u3002<\/li>\n<li><strong>chr()\u51fd\u6570<\/strong>\uff1a\u6b64\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u6574\u6570\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u8be5\u6574\u6570\u5bf9\u5e94\u7684\u5b57\u7b26\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u4f7f\u7528ord()\u51fd\u6570\u83b7\u53d6ASCII\u7801<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u83b7\u53d6\u5b57\u7b26\u7684ASCII\u7801\u503c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u83b7\u53d6\u5b57\u7b26&#39;a&#39;\u7684ASCII\u7801\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\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 97<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u6211\u4eec\u53ef\u4ee5\u83b7\u53d6\u5176\u4ed6\u5b57\u7b26\u7684ASCII\u7801\u503c\uff0c\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>ascii_value = ord(&#39;0&#39;)<\/p>\n<p>print(ascii_value)  # \u8f93\u51fa 48<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528chr()\u51fd\u6570\u83b7\u53d6\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>chr()<\/code>\u51fd\u6570\uff0c\u6839\u636eASCII\u7801\u503c\u83b7\u53d6\u5bf9\u5e94\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u83b7\u53d6ASCII\u7801\u503c97\u5bf9\u5e94\u7684\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">character = chr(97)<\/p>\n<p>print(character)  # \u8f93\u51fa &#39;a&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u6211\u4eec\u53ef\u4ee5\u83b7\u53d6\u5176\u4ed6ASCII\u7801\u503c\u5bf9\u5e94\u7684\u5b57\u7b26\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">character = chr(65)<\/p>\n<p>print(character)  # \u8f93\u51fa &#39;A&#39;<\/p>\n<p>character = chr(48)<\/p>\n<p>print(character)  # \u8f93\u51fa &#39;0&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5728\u5b57\u7b26\u4e32\u4e2d\u904d\u5386\u5b57\u7b26\u548cASCII\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u5e76\u83b7\u53d6\u6bcf\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, World!&quot;<\/p>\n<p>ascii_values = [ord(char) for char in text]<\/p>\n<p>print(ascii_values)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u5c06\u8f93\u51fa\u5b57\u7b26\u4e32&quot;Hello, World!&quot;\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u503c\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code>[72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u6211\u4eec\u53ef\u4ee5\u4eceASCII\u7801\u503c\u5217\u8868\u4e2d\u91cd\u5efa\u539f\u59cb\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ascii_values = [72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33]<\/p>\n<p>text = &#39;&#39;.join(chr(value) for value in ascii_values)<\/p>\n<p>print(text)  # \u8f93\u51fa &quot;Hello, World!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528ASCII\u7801\u8fdb\u884c\u52a0\u5bc6\u548c\u89e3\u5bc6<\/h3>\n<\/p>\n<p><p>ASCII\u7801\u8fd8\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u52a0\u5bc6\u548c\u89e3\u5bc6\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u51ef\u6492\u5bc6\u7801\uff08Caesar Cipher\uff09\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u52a0\u5bc6\u548c\u89e3\u5bc6\u3002\u51ef\u6492\u5bc6\u7801\u662f\u4e00\u79cd\u66ff\u6362\u52a0\u5bc6\u65b9\u6cd5\uff0c\u901a\u8fc7\u5c06\u6bcf\u4e2a\u5b57\u6bcd\u79fb\u52a8\u56fa\u5b9a\u7684\u4f4d\u6570\u6765\u52a0\u5bc6\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u51ef\u6492\u5bc6\u7801\u52a0\u5bc6\u548c\u89e3\u5bc6\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def caesar_cipher_encrypt(text, shift):<\/p>\n<p>    encrypted_text = &#39;&#39;<\/p>\n<p>    for char in text:<\/p>\n<p>        if char.isalpha():<\/p>\n<p>            shifted = ord(char) + shift<\/p>\n<p>            if char.islower():<\/p>\n<p>                if shifted &gt; ord(&#39;z&#39;):<\/p>\n<p>                    shifted -= 26<\/p>\n<p>                encrypted_text += chr(shifted)<\/p>\n<p>            elif char.isupper():<\/p>\n<p>                if shifted &gt; ord(&#39;Z&#39;):<\/p>\n<p>                    shifted -= 26<\/p>\n<p>                encrypted_text += chr(shifted)<\/p>\n<p>        else:<\/p>\n<p>            encrypted_text += char<\/p>\n<p>    return encrypted_text<\/p>\n<p>def caesar_cipher_decrypt(encrypted_text, shift):<\/p>\n<p>    decrypted_text = &#39;&#39;<\/p>\n<p>    for char in encrypted_text:<\/p>\n<p>        if char.isalpha():<\/p>\n<p>            shifted = ord(char) - shift<\/p>\n<p>            if char.islower():<\/p>\n<p>                if shifted &lt; ord(&#39;a&#39;):<\/p>\n<p>                    shifted += 26<\/p>\n<p>                decrypted_text += chr(shifted)<\/p>\n<p>            elif char.isupper():<\/p>\n<p>                if shifted &lt; ord(&#39;A&#39;):<\/p>\n<p>                    shifted += 26<\/p>\n<p>                decrypted_text += chr(shifted)<\/p>\n<p>        else:<\/p>\n<p>            decrypted_text += char<\/p>\n<p>    return decrypted_text<\/p>\n<p>text = &quot;Hello, World!&quot;<\/p>\n<p>shift = 3<\/p>\n<p>encrypted_text = caesar_cipher_encrypt(text, shift)<\/p>\n<p>print(&quot;Encrypted:&quot;, encrypted_text)  # \u8f93\u51fa &quot;Khoor, Zruog!&quot;<\/p>\n<p>decrypted_text = caesar_cipher_decrypt(encrypted_text, shift)<\/p>\n<p>print(&quot;Decrypted:&quot;, decrypted_text)  # \u8f93\u51fa &quot;Hello, World!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u975eASCII\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u867d\u7136ASCII\u7801\u6db5\u76d6\u4e86\u5927\u90e8\u5206\u82f1\u8bed\u5b57\u7b26\uff0c\u4f46\u5b83\u4e0d\u5305\u62ec\u5176\u4ed6\u8bed\u8a00\u7684\u5b57\u7b26\u548c\u7279\u6b8a\u7b26\u53f7\u3002\u4e3a\u4e86\u5904\u7406\u8fd9\u4e9b\u5b57\u7b26\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Unicode\u7f16\u7801\u3002Python 3\u9ed8\u8ba4\u4f7f\u7528UTF-8\u7f16\u7801\uff0c\u8fd9\u4f7f\u5f97\u5904\u7406\u975eASCII\u5b57\u7b26\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u83b7\u53d6\u975eASCII\u5b57\u7b26\u7684Unicode\u7801\u70b9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">unicode_value = ord(&#39;\u4f60&#39;)<\/p>\n<p>print(unicode_value)  # \u8f93\u51fa 20320<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636eUnicode\u7801\u70b9\u83b7\u53d6\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">character = chr(20320)<\/p>\n<p>print(character)  # \u8f93\u51fa &#39;\u4f60&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u6269\u5c55\uff1a\u5b57\u7b26\u4e32\u7f16\u7801\u4e0e\u89e3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5b57\u7b26\u548c\u5b57\u7b26\u4e32\u65f6\uff0c\u4e86\u89e3\u7f16\u7801\u548c\u89e3\u7801\u7684\u6982\u5ff5\u975e\u5e38\u91cd\u8981\u3002\u7f16\u7801\u662f\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5b57\u8282\u5e8f\u5217\u7684\u8fc7\u7a0b\uff0c\u800c\u89e3\u7801\u662f\u5c06\u5b57\u8282\u5e8f\u5217\u8f6c\u6362\u4e3a\u5b57\u7b26\u7684\u8fc7\u7a0b\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u7f16\u7801\u548c\u89e3\u7801\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3a\u5b57\u8282\u5e8f\u5217\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, \u4e16\u754c!&quot;<\/p>\n<p>encoded_text = text.encode(&#39;utf-8&#39;)<\/p>\n<p>print(encoded_text)  # \u8f93\u51fa b&#39;Hello, \\xe4\\xb8\\x96\\xe7\\x95\\x8c!&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06\u5b57\u8282\u5e8f\u5217\u89e3\u7801\u4e3a\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">decoded_text = encoded_text.decode(&#39;utf-8&#39;)<\/p>\n<p>print(decoded_text)  # \u8f93\u51fa &quot;Hello, \u4e16\u754c!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e86\u89e3\u7f16\u7801\u548c\u89e3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u5904\u7406\u5404\u79cd\u5b57\u7b26\u96c6\u548c\u6587\u672c\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u8f93\u51fa\u5b57\u7b26&#39;a&#39;\u7684ASCII\u7801\u503c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<code>ord()<\/code>\u3002\u901a\u8fc7\u4e86\u89e3<code>ord()<\/code>\u548c<code>chr()<\/code>\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5904\u7406\u5b57\u7b26\u4e0e\u5176\u5bf9\u5e94\u7684ASCII\u7801\u503c\u3002\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528ASCII\u7801\u8fdb\u884c\u5404\u79cd\u5b57\u7b26\u4e32\u64cd\u4f5c\uff0c\u5982\u904d\u5386\u3001\u52a0\u5bc6\u548c\u89e3\u5bc6\u3002\u5bf9\u4e8e\u975eASCII\u5b57\u7b26\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Unicode\u7f16\u7801\u8fdb\u884c\u5904\u7406\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\u5c06\u6709\u52a9\u4e8e\u6211\u4eec\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u66f4\u597d\u5730\u5904\u7406\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\u83b7\u53d6\u5b57\u7b26\u7684ASCII\u7801\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>ord()<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u5b57\u7b26\u7684ASCII\u7801\u503c\u3002\u53ea\u9700\u5c06\u5b57\u7b26\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9<code>ord()<\/code>\uff0c\u4f8b\u5982\uff1a<code>ord(&#39;a&#39;)<\/code>\u5c06\u8fd4\u56de97\uff0c\u8fd9\u662f\u5b57\u7b26&#39;a&#39;\u7684ASCII\u7801\u503c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5c06\u591a\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u503c\u540c\u65f6\u8f93\u51fa\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u5e76\u5229\u7528<code>ord()<\/code>\u51fd\u6570\u8f93\u51fa\u5176ASCII\u7801\u503c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8fd9\u6837\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">string = &quot;abc&quot;\nascii_values = [ord(char) for char in string]\nprint(ascii_values)  # \u8f93\u51fa: [97, 98, 99]\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u83b7\u53d6\u5b57\u7b26\u4e32\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u503c\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5c06ASCII\u7801\u503c\u8f6c\u6362\u56de\u5b57\u7b26\uff1f<\/strong><br \/>\u4f7f\u7528<code>chr()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06ASCII\u7801\u503c\u8f6c\u6362\u56de\u5bf9\u5e94\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c<code>chr(97)<\/code>\u5c06\u8fd4\u56de\u5b57\u7b26&#39;a&#39;\u3002\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5728\u9700\u8981\u8fdb\u884c\u5b57\u7b26\u4e0eASCII\u7801\u503c\u4e4b\u95f4\u8f6c\u6362\u65f6\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u8f93\u51fa\u5b57\u7b26&#39;a&#39;\u7684ASCII\u7801\u503c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()\u3002 \u4f7f\u7528ord()\u51fd [&hellip;]","protected":false},"author":3,"featured_media":1046904,"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\/1046884"}],"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=1046884"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1046884\/revisions"}],"predecessor-version":[{"id":1046906,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1046884\/revisions\/1046906"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1046904"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1046884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1046884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1046884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}