{"id":1154890,"date":"2025-01-13T17:56:51","date_gmt":"2025-01-13T09:56:51","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1154890.html"},"modified":"2025-01-13T17:56:53","modified_gmt":"2025-01-13T09:56:53","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0vigenere%e5%8a%a0%e5%af%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1154890.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0vigenere\u52a0\u5bc6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25184421\/9d010657-d893-4f04-93e8-24850a9bfc3a.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0vigenere\u52a0\u5bc6\" \/><\/p>\n<p><p> <strong>Python\u5b9e\u73b0Vigenere\u52a0\u5bc6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d\u5305\u62ec\uff1a\u6784\u5efa\u5b57\u6bcd\u8868\u3001\u5b9e\u73b0\u52a0\u5bc6\u548c\u89e3\u5bc6\u51fd\u6570\u3001\u5904\u7406\u660e\u6587\u548c\u5bc6\u94a5\u7684\u957f\u5ea6\u5dee\u5f02\u3002<\/strong> \u5177\u4f53\u6765\u8bf4\uff0c\u6784\u5efa\u5b57\u6bcd\u8868\u662f\u4e3a\u4e86\u65b9\u4fbf\u5b57\u6bcd\u7684\u7d22\u5f15\u548c\u6620\u5c04\uff0c\u52a0\u5bc6\u51fd\u6570\u5c06\u660e\u6587\u5b57\u6bcd\u4e0e\u5bc6\u94a5\u5b57\u6bcd\u8fdb\u884c\u6309\u5b57\u6bcd\u8868\u7684\u4f4d\u79fb\u64cd\u4f5c\uff0c\u89e3\u5bc6\u51fd\u6570\u5219\u53cd\u5411\u64cd\u4f5c\u3002\u4ee5\u4e0b\u6211\u5c06\u8be6\u7ec6\u5c55\u5f00Vigenere\u52a0\u5bc6\u7684\u5b9e\u73b0\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6784\u5efa\u5b57\u6bcd\u8868<\/h3>\n<\/p>\n<p><p>\u5b57\u6bcd\u8868\u662fVigenere\u52a0\u5bc6\u7684\u57fa\u7840\uff0c\u901a\u8fc7\u5b57\u6bcd\u8868\u53ef\u4ee5\u5b9e\u73b0\u5b57\u6bcd\u7684\u4f4d\u79fb\u3002\u901a\u5e38\u4f7f\u7528\u82f1\u6587\u5b57\u6bcd\uff0826\u4e2a\u5b57\u7b26\uff09\u8fdb\u884c\u52a0\u5bc6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import string<\/p>\n<p>alphabet = string.ascii_uppercase<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b9e\u73b0\u52a0\u5bc6\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u52a0\u5bc6\u51fd\u6570\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5c06\u660e\u6587\u548c\u5bc6\u94a5\u8f6c\u6362\u4e3a\u5927\u5199\u5b57\u6bcd\u3002<\/li>\n<li>\u5904\u7406\u660e\u6587\u548c\u5bc6\u94a5\u7684\u957f\u5ea6\u5dee\u5f02\uff0c\u4f7f\u5bc6\u94a5\u5faa\u73af\u4f7f\u7528\u3002<\/li>\n<li>\u5c06\u660e\u6587\u5b57\u6bcd\u6309\u5bc6\u94a5\u5b57\u6bcd\u7684\u4f4d\u79fb\u8fdb\u884c\u52a0\u5bc6\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def vigenere_encrypt(pl<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ntext, key):<\/p>\n<p>    alphabet = string.ascii_uppercase<\/p>\n<p>    plaintext = plaintext.upper()<\/p>\n<p>    key = key.upper()<\/p>\n<p>    encrypted_text = []<\/p>\n<p>    key_length = len(key)<\/p>\n<p>    key_as_int = [alphabet.index(i) for i in key]<\/p>\n<p>    plaintext_as_int = [alphabet.index(i) for i in plaintext]<\/p>\n<p>    for i in range(len(plaintext_as_int)):<\/p>\n<p>        value = (plaintext_as_int[i] + key_as_int[i % key_length]) % 26<\/p>\n<p>        encrypted_text.append(alphabet[value])<\/p>\n<p>    return &#39;&#39;.join(encrypted_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5b9e\u73b0\u89e3\u5bc6\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u89e3\u5bc6\u51fd\u6570\u7684\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u5c06\u5bc6\u6587\u548c\u5bc6\u94a5\u8f6c\u6362\u4e3a\u5927\u5199\u5b57\u6bcd\u3002<\/li>\n<li>\u5904\u7406\u5bc6\u6587\u548c\u5bc6\u94a5\u7684\u957f\u5ea6\u5dee\u5f02\uff0c\u4f7f\u5bc6\u94a5\u5faa\u73af\u4f7f\u7528\u3002<\/li>\n<li>\u5c06\u5bc6\u6587\u5b57\u6bcd\u6309\u5bc6\u94a5\u5b57\u6bcd\u7684\u4f4d\u79fb\u8fdb\u884c\u89e3\u5bc6\u3002<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def vigenere_decrypt(ciphertext, key):<\/p>\n<p>    alphabet = string.ascii_uppercase<\/p>\n<p>    ciphertext = ciphertext.upper()<\/p>\n<p>    key = key.upper()<\/p>\n<p>    decrypted_text = []<\/p>\n<p>    key_length = len(key)<\/p>\n<p>    key_as_int = [alphabet.index(i) for i in key]<\/p>\n<p>    ciphertext_as_int = [alphabet.index(i) for i in ciphertext]<\/p>\n<p>    for i in range(len(ciphertext_as_int)):<\/p>\n<p>        value = (ciphertext_as_int[i] - key_as_int[i % key_length]) % 26<\/p>\n<p>        decrypted_text.append(alphabet[value])<\/p>\n<p>    return &#39;&#39;.join(decrypted_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u660e\u6587\u548c\u5bc6\u94a5\u7684\u957f\u5ea6\u5dee\u5f02<\/h3>\n<\/p>\n<p><p>\u5728Vigenere\u52a0\u5bc6\u4e2d\uff0c\u5bc6\u94a5\u901a\u5e38\u6bd4\u660e\u6587\u77ed\uff0c\u56e0\u6b64\u9700\u8981\u5faa\u73af\u4f7f\u7528\u5bc6\u94a5\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u53d6\u6a21\u64cd\u4f5c\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u5373\u4f7f\u7528 <code>i % key_length<\/code> \u6765\u5faa\u73af\u4f7f\u7528\u5bc6\u94a5\u5b57\u6bcd\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u4e0a\u8ff0\u52a0\u5bc6\u548c\u89e3\u5bc6\u51fd\u6570\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5305\u62ec\u8f93\u5165\u660e\u6587\u548c\u5bc6\u94a5\uff0c\u4ee5\u53ca\u52a0\u5bc6\u548c\u89e3\u5bc6\u7684\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import string<\/p>\n<p>def vigenere_encrypt(plaintext, key):<\/p>\n<p>    alphabet = string.ascii_uppercase<\/p>\n<p>    plaintext = plaintext.upper()<\/p>\n<p>    key = key.upper()<\/p>\n<p>    encrypted_text = []<\/p>\n<p>    key_length = len(key)<\/p>\n<p>    key_as_int = [alphabet.index(i) for i in key]<\/p>\n<p>    plaintext_as_int = [alphabet.index(i) for i in plaintext]<\/p>\n<p>    for i in range(len(plaintext_as_int)):<\/p>\n<p>        value = (plaintext_as_int[i] + key_as_int[i % key_length]) % 26<\/p>\n<p>        encrypted_text.append(alphabet[value])<\/p>\n<p>    return &#39;&#39;.join(encrypted_text)<\/p>\n<p>def vigenere_decrypt(ciphertext, key):<\/p>\n<p>    alphabet = string.ascii_uppercase<\/p>\n<p>    ciphertext = ciphertext.upper()<\/p>\n<p>    key = key.upper()<\/p>\n<p>    decrypted_text = []<\/p>\n<p>    key_length = len(key)<\/p>\n<p>    key_as_int = [alphabet.index(i) for i in key]<\/p>\n<p>    ciphertext_as_int = [alphabet.index(i) for i in ciphertext]<\/p>\n<p>    for i in range(len(ciphertext_as_int)):<\/p>\n<p>        value = (ciphertext_as_int[i] - key_as_int[i % key_length]) % 26<\/p>\n<p>        decrypted_text.append(alphabet[value])<\/p>\n<p>    return &#39;&#39;.join(decrypted_text)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    plaintext = &quot;HELLO WORLD&quot;<\/p>\n<p>    key = &quot;KEY&quot;<\/p>\n<p>    encrypted_text = vigenere_encrypt(plaintext, key)<\/p>\n<p>    print(f&quot;Encrypted Text: {encrypted_text}&quot;)<\/p>\n<p>    decrypted_text = vigenere_decrypt(encrypted_text, key)<\/p>\n<p>    print(f&quot;Decrypted Text: {decrypted_text}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u8fdb\u9636\u5b9e\u73b0<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5904\u7406\u66f4\u591a\u5b57\u7b26\uff08\u5982\u7a7a\u683c\u3001\u6807\u70b9\u7b26\u53f7\u7b49\uff09\uff0c\u5e76\u4e14\u5e0c\u671b\u4fdd\u6301\u8fd9\u4e9b\u5b57\u7b26\u4e0d\u53d8\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u66f4\u590d\u6742\u7684\u5b9e\u73b0\u7248\u672c\uff0c\u5904\u7406\u4e86\u975e\u5b57\u6bcd\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def vigenere_encrypt_advanced(plaintext, key):<\/p>\n<p>    alphabet = string.ascii_uppercase<\/p>\n<p>    encrypted_text = []<\/p>\n<p>    key_length = len(key)<\/p>\n<p>    key_as_int = [alphabet.index(i) for i in key.upper()]<\/p>\n<p>    key_index = 0<\/p>\n<p>    for char in plaintext:<\/p>\n<p>        if char.upper() in alphabet:<\/p>\n<p>            plain_index = alphabet.index(char.upper())<\/p>\n<p>            key_value = key_as_int[key_index % key_length]<\/p>\n<p>            value = (plain_index + key_value) % 26<\/p>\n<p>            encrypted_char = alphabet[value]<\/p>\n<p>            if char.islower():<\/p>\n<p>                encrypted_char = encrypted_char.lower()<\/p>\n<p>            encrypted_text.append(encrypted_char)<\/p>\n<p>            key_index += 1<\/p>\n<p>        else:<\/p>\n<p>            encrypted_text.append(char)<\/p>\n<p>    return &#39;&#39;.join(encrypted_text)<\/p>\n<p>def vigenere_decrypt_advanced(ciphertext, key):<\/p>\n<p>    alphabet = string.ascii_uppercase<\/p>\n<p>    decrypted_text = []<\/p>\n<p>    key_length = len(key)<\/p>\n<p>    key_as_int = [alphabet.index(i) for i in key.upper()]<\/p>\n<p>    key_index = 0<\/p>\n<p>    for char in ciphertext:<\/p>\n<p>        if char.upper() in alphabet:<\/p>\n<p>            cipher_index = alphabet.index(char.upper())<\/p>\n<p>            key_value = key_as_int[key_index % key_length]<\/p>\n<p>            value = (cipher_index - key_value) % 26<\/p>\n<p>            decrypted_char = alphabet[value]<\/p>\n<p>            if char.islower():<\/p>\n<p>                decrypted_char = decrypted_char.lower()<\/p>\n<p>            decrypted_text.append(decrypted_char)<\/p>\n<p>            key_index += 1<\/p>\n<p>        else:<\/p>\n<p>            decrypted_text.append(char)<\/p>\n<p>    return &#39;&#39;.join(decrypted_text)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    plaintext = &quot;Hello, World!&quot;<\/p>\n<p>    key = &quot;KEY&quot;<\/p>\n<p>    encrypted_text = vigenere_encrypt_advanced(plaintext, key)<\/p>\n<p>    print(f&quot;Encrypted Text: {encrypted_text}&quot;)<\/p>\n<p>    decrypted_text = vigenere_decrypt_advanced(encrypted_text, key)<\/p>\n<p>    print(f&quot;Decrypted Text: {decrypted_text}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>Vigenere\u52a0\u5bc6\u662f\u4e00\u79cd\u7ecf\u5178\u7684\u52a0\u5bc6\u65b9\u6cd5\uff0c\u901a\u8fc7\u5b57\u6bcd\u8868\u7684\u4f4d\u79fb\u5b9e\u73b0\u52a0\u5bc6\u548c\u89e3\u5bc6\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u6784\u5efa\u5b57\u6bcd\u8868\u3001\u5b9e\u73b0\u52a0\u5bc6\u548c\u89e3\u5bc6\u51fd\u6570\u4ee5\u53ca\u5904\u7406\u660e\u6587\u548c\u5bc6\u94a5\u957f\u5ea6\u5dee\u5f02\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u4e0a\u8ff0\u793a\u4f8b\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u6e05\u6670\u5730\u770b\u5230Vigenere\u52a0\u5bc6\u7684\u5b9e\u73b0\u8fc7\u7a0b\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8fdb\u884c\u66f4\u591a\u7684\u5904\u7406\uff0c\u5982\u4fdd\u6301\u975e\u5b57\u6bcd\u5b57\u7b26\u4e0d\u53d8\u7b49\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5bf9\u4f60\u7406\u89e3\u548c\u5b9e\u73b0Vigenere\u52a0\u5bc6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0Vigen\u00e8re\u52a0\u5bc6\u7b97\u6cd5\uff1f<\/strong><br \/>Vigen\u00e8re\u52a0\u5bc6\u7b97\u6cd5\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u5904\u7406\u548cASCII\u7801\u8fd0\u7b97\u6765\u5b9e\u73b0\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Python\u51fd\u6570\uff0c\u901a\u8fc7\u5bf9\u6bcf\u4e2a\u5b57\u6bcd\u8fdb\u884c\u504f\u79fb\u6765\u52a0\u5bc6\u6587\u672c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u5b9e\u73b0\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">def vigenere_encrypt(plaintext, key):\n    encrypted_text = &quot;&quot;\n    key_length = len(key)\n    key_index = 0\n    \n    for char in plaintext:\n        if char.isalpha():  # \u53ea\u5bf9\u5b57\u6bcd\u8fdb\u884c\u52a0\u5bc6\n            shift = ord(key[key_index % key_length].lower()) - ord(&#39;a&#39;)\n            if char.islower():\n                encrypted_text += chr((ord(char) - ord(&#39;a&#39;) + shift) % 26 + ord(&#39;a&#39;))\n            else:\n                encrypted_text += chr((ord(char) - ord(&#39;A&#39;) + shift) % 26 + ord(&#39;A&#39;))\n            key_index += 1  # \u53ea\u6709\u5b57\u6bcd\u624d\u589e\u52a0key_index\n        else:\n            encrypted_text += char  # \u975e\u5b57\u6bcd\u5b57\u7b26\u4fdd\u6301\u4e0d\u53d8\n            \n    return encrypted_text\n<\/code><\/pre>\n<p><strong>Vigen\u00e8re\u52a0\u5bc6\u7684\u5bc6\u94a5\u9009\u62e9\u6709\u4ec0\u4e48\u6ce8\u610f\u4e8b\u9879\uff1f<\/strong><br \/>\u9009\u62e9\u4e00\u4e2a\u5f3a\u5927\u7684\u5bc6\u94a5\u662f\u786e\u4fddVigen\u00e8re\u52a0\u5bc6\u6709\u6548\u6027\u7684\u5173\u952e\u3002\u5efa\u8bae\u4f7f\u7528\u8db3\u591f\u957f\u4e14\u590d\u6742\u7684\u5bc6\u94a5\uff0c\u907f\u514d\u4f7f\u7528\u5e38\u89c1\u7684\u5355\u8bcd\u6216\u77ed\u8bed\u3002\u4f7f\u7528\u968f\u673a\u751f\u6210\u7684\u5b57\u7b26\u7ec4\u5408\u53ef\u4ee5\u589e\u52a0\u52a0\u5bc6\u7684\u5b89\u5168\u6027\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u5bc6\u94a5\u7684\u957f\u5ea6\u4e0e\u660e\u6587\u76f8\u8fd1\uff0c\u6709\u52a9\u4e8e\u63d0\u9ad8\u52a0\u5bc6\u7684\u5f3a\u5ea6\u3002<\/p>\n<p><strong>\u5982\u4f55\u89e3\u5bc6Vigen\u00e8re\u52a0\u5bc6\u7684\u6587\u672c\uff1f<\/strong><br \/>\u89e3\u5bc6\u8fc7\u7a0b\u4e0e\u52a0\u5bc6\u8fc7\u7a0b\u76f8\u4f3c\uff0c\u53ea\u9700\u53cd\u5411\u64cd\u4f5c\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u89e3\u5bc6\u51fd\u6570\uff0c\u4f7f\u7528\u76f8\u540c\u7684\u5bc6\u94a5\u5e76\u8fdb\u884c\u76f8\u53cd\u7684\u5b57\u7b26\u504f\u79fb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u89e3\u5bc6\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">def vigenere_decrypt(ciphertext, key):\n    decrypted_text = &quot;&quot;\n    key_length = len(key)\n    key_index = 0\n    \n    for char in ciphertext:\n        if char.isalpha():  # \u53ea\u5bf9\u5b57\u6bcd\u8fdb\u884c\u89e3\u5bc6\n            shift = ord(key[key_index % key_length].lower()) - ord(&#39;a&#39;)\n            if char.islower():\n                decrypted_text += chr((ord(char) - ord(&#39;a&#39;) - shift + 26) % 26 + ord(&#39;a&#39;))\n            else:\n                decrypted_text += chr((ord(char) - ord(&#39;A&#39;) - shift + 26) % 26 + ord(&#39;A&#39;))\n            key_index += 1  # \u53ea\u6709\u5b57\u6bcd\u624d\u589e\u52a0key_index\n        else:\n            decrypted_text += char  # \u975e\u5b57\u6bcd\u5b57\u7b26\u4fdd\u6301\u4e0d\u53d8\n            \n    return decrypted_text\n<\/code><\/pre>\n<p>\u4f7f\u7528\u8fd9\u4e9b\u4ee3\u7801\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728Python\u4e2d\u5b9e\u73b0Vigen\u00e8re\u52a0\u5bc6\u548c\u89e3\u5bc6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5b9e\u73b0Vigenere\u52a0\u5bc6\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d\u5305\u62ec\uff1a\u6784\u5efa\u5b57\u6bcd\u8868\u3001\u5b9e\u73b0\u52a0\u5bc6\u548c\u89e3\u5bc6\u51fd\u6570\u3001\u5904\u7406\u660e\u6587\u548c\u5bc6\u94a5\u7684\u957f [&hellip;]","protected":false},"author":3,"featured_media":1154897,"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\/1154890"}],"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=1154890"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1154890\/revisions"}],"predecessor-version":[{"id":1154898,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1154890\/revisions\/1154898"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1154897"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1154890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1154890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1154890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}