{"id":1145192,"date":"2025-01-08T23:06:09","date_gmt":"2025-01-08T15:06:09","guid":{"rendered":""},"modified":"2025-01-08T23:06:12","modified_gmt":"2025-01-08T15:06:12","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%a4%a7%e5%86%99%e5%ad%97%e6%af%8d%e8%bd%ac%e6%8d%a2%e6%88%90%e6%95%b0%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1145192.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181917\/9ebb219b-5188-425c-962e-a3393dd76ca1.webp\" alt=\"python\u5982\u4f55\u5c06\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\" \/><\/p>\n<p><p> <strong>Python\u5c06\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()\u3001\u521b\u5efa\u6620\u5c04\u5b57\u5178\u3001\u5229\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u7b49<\/strong>\uff0c\u5176\u4e2d<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()<\/strong>\u662f\u6700\u5e38\u89c1\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u5e76\u8fdb\u4e00\u6b65\u63a2\u8ba8\u5176\u4ed6\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()<\/h3>\n<\/p>\n<p><p>Python\u7684\u5185\u7f6e\u51fd\u6570<code>ord()<\/code>\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684ASCII\u7801\u503c\u3002\u5927\u5199\u5b57\u6bcd\u5728ASCII\u8868\u4e2d\u7684\u503c\u4ece65\uff08&#39;A&#39;\uff09\u523090\uff08&#39;Z&#39;\uff09\u3002\u56e0\u6b64\uff0c\u53ef\u4ee5\u901a\u8fc7\u8ba1\u7b97\u5f97\u5230\u76f8\u5e94\u7684\u6570\u5b57\u3002\u4f8b\u5982\uff0c<code>ord(&#39;A&#39;) - 65<\/code>\u4f1a\u5f97\u52300\uff0c<code>ord(&#39;B&#39;) - 65<\/code>\u4f1a\u5f97\u52301\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def char_to_num(char):<\/p>\n<p>    return ord(char) - 65<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>print(char_to_num(&#39;A&#39;))  # \u8f93\u51fa 0<\/p>\n<p>print(char_to_num(&#39;B&#39;))  # \u8f93\u51fa 1<\/p>\n<p>print(char_to_num(&#39;Z&#39;))  # \u8f93\u51fa 25<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u6d01\u4e14\u9ad8\u6548\uff0c\u9002\u5408\u5904\u7406\u5355\u4e2a\u5b57\u7b26\u7684\u8f6c\u6362\u3002\u5f53\u9700\u8981\u5904\u7406\u6574\u4e2a\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216\u5faa\u73af\u8fdb\u884c\u6279\u91cf\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u521b\u5efa\u6620\u5c04\u5b57\u5178<\/h3>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u521b\u5efa\u4e00\u4e2a\u6620\u5c04\u5b57\u5178\uff0c\u5c06\u5927\u5199\u5b57\u6bcd\u4e0e\u76f8\u5e94\u7684\u6570\u5b57\u5173\u8054\u8d77\u6765\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u76f4\u89c2\uff0c\u4e14\u53ef\u4ee5\u7075\u6d3b\u5904\u7406\u975e\u8fde\u7eed\u7684\u6620\u5c04\u5173\u7cfb\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def create_mapping():<\/p>\n<p>    mapping = {chr(i): i - 65 for i in range(65, 91)}<\/p>\n<p>    return mapping<\/p>\n<p>mapping = create_mapping()<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>print(mapping[&#39;A&#39;])  # \u8f93\u51fa 0<\/p>\n<p>print(mapping[&#39;B&#39;])  # \u8f93\u51fa 1<\/p>\n<p>print(mapping[&#39;Z&#39;])  # \u8f93\u51fa 25<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u53ef\u80fd\u6548\u7387\u4e0d\u5982<code>ord()<\/code>\u65b9\u6cd5\uff0c\u4f46\u5728\u9700\u8981\u7075\u6d3b\u6027\u548c\u53ef\u8bfb\u6027\u7684\u60c5\u51b5\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u8fd8\u53ef\u4ee5\u5229\u7528Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u5c06\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\u3002\u901a\u8fc7\u5b57\u7b26\u4e32\u7684<code>index()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u627e\u5230\u67d0\u4e2a\u5b57\u7b26\u5728\u5b57\u7b26\u4e32\u4e2d\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def char_to_num_via_string(char):<\/p>\n<p>    alphabet = &#39;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#39;<\/p>\n<p>    return alphabet.index(char)<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>print(char_to_num_via_string(&#39;A&#39;))  # \u8f93\u51fa 0<\/p>\n<p>print(char_to_num_via_string(&#39;B&#39;))  # \u8f93\u51fa 1<\/p>\n<p>print(char_to_num_via_string(&#39;Z&#39;))  # \u8f93\u51fa 25<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u7f3a\u70b9\u662f\u5728\u6bcf\u6b21\u8c03\u7528\u65f6\u90fd\u9700\u8981\u641c\u7d22\u5b57\u7b26\u4e32\uff0c\u6548\u7387\u8f83\u4f4e\uff0c\u4f46\u4ee3\u7801\u53ef\u8bfb\u6027\u9ad8\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6279\u91cf\u8f6c\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5927\u5199\u5b57\u6bcd<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u6574\u4e2a\u5b57\u7b26\u4e32\u4e2d\u7684\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\u3002\u53ef\u4ee5\u7ed3\u5408\u524d\u8ff0\u65b9\u6cd5\u8fdb\u884c\u6279\u91cf\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def string_to_nums(string):<\/p>\n<p>    return [ord(char) - 65 for char in string if &#39;A&#39; &lt;= char &lt;= &#39;Z&#39;]<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>print(string_to_nums(&#39;HELLO WORLD&#39;))  # \u8f93\u51fa [7, 4, 11, 11, 14, 22, 14, 17, 11, 3]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u975e\u6807\u51c6\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5b57\u7b26\u4e32\u53ef\u80fd\u5305\u542b\u975e\u5927\u5199\u5b57\u6bcd\u5b57\u7b26\uff0c\u5982\u7a7a\u683c\u3001\u6807\u70b9\u7b26\u53f7\u7b49\u3002\u9700\u8981\u786e\u4fdd\u8fd9\u4e9b\u5b57\u7b26\u88ab\u6b63\u786e\u5ffd\u7565\u6216\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def string_to_nums_handle_non_standard(string):<\/p>\n<p>    return [ord(char) - 65 for char in string if &#39;A&#39; &lt;= char &lt;= &#39;Z&#39;]<\/p>\n<h2><strong>\u6d4b\u8bd5<\/strong><\/h2>\n<p>print(string_to_nums_handle_non_standard(&#39;Hello, World!&#39;))  # \u8f93\u51fa [7, 4, 11, 11, 14, 22, 14, 17, 11, 3]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u6dfb\u52a0\u6761\u4ef6\u5224\u65ad\uff0c\u53ef\u4ee5\u6709\u6548\u8fc7\u6ee4\u6389\u975e\u5927\u5199\u5b57\u6bcd\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u7ed3\u5408\u5176\u5b83\u5e93\u548c\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u5728\u66f4\u590d\u6742\u7684\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u5176\u5b83\u5e93\u548c\u5de5\u5177\u8fdb\u884c\u5904\u7406\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>pandas<\/code>\u8fdb\u884c\u6570\u636e\u5206\u6790\u65f6\uff0c\u53ef\u4ee5\u5229\u7528<code>apply<\/code>\u65b9\u6cd5\u6279\u91cf\u8f6c\u6362\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>data = {&#39;Letters&#39;: [&#39;A&#39;, &#39;B&#39;, &#39;C&#39;, &#39;D&#39;, &#39;E&#39;]}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<h2><strong>\u5b9a\u4e49\u8f6c\u6362\u51fd\u6570<\/strong><\/h2>\n<p>def char_to_num(char):<\/p>\n<p>    return ord(char) - 65<\/p>\n<h2><strong>\u5e94\u7528\u8f6c\u6362\u51fd\u6570<\/strong><\/h2>\n<p>df[&#39;Numbers&#39;] = df[&#39;Letters&#39;].apply(char_to_num)<\/p>\n<p>print(df)<\/p>\n<h2><strong>\u8f93\u51fa:<\/strong><\/h2>\n<h2><strong>  Letters  Numbers<\/strong><\/h2>\n<h2><strong>0       A        0<\/strong><\/h2>\n<h2><strong>1       B        1<\/strong><\/h2>\n<h2><strong>2       C        2<\/strong><\/h2>\n<h2><strong>3       D        3<\/strong><\/h2>\n<h2><strong>4       E        4<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408<code>pandas<\/code>\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\uff0c\u5e76\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u5206\u6790\u548c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u6027\u80fd\u4f18\u5316\u548c\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u6027\u80fd\u4f18\u5316\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\u3002\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u63d0\u9ad8\u4ee3\u7801\u6027\u80fd\uff0c\u4f8b\u5982\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97\u7b49\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<h2><strong>\u6d4b\u8bd5\u6027\u80fd<\/strong><\/h2>\n<p>def performance_test():<\/p>\n<p>    start = time.time()<\/p>\n<p>    for _ in range(1000000):<\/p>\n<p>        ord(&#39;A&#39;) - 65<\/p>\n<p>    end = time.time()<\/p>\n<p>    print(f&quot;Time taken: {end - start} seconds&quot;)<\/p>\n<p>performance_test()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u6027\u80fd\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u8bc4\u4f30\u4e0d\u540c\u65b9\u6cd5\u7684\u6548\u7387\uff0c\u4ece\u800c\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u5c06\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\uff0c\u5305\u62ec<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()\u3001\u521b\u5efa\u6620\u5c04\u5b57\u5178\u3001\u5229\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5<\/strong>\u7b49\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()<\/strong> \u662f\u6700\u5e38\u89c1\u548c\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u5728\u5904\u7406\u6574\u4e2a\u5b57\u7b26\u4e32\u6216\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u7ed3\u5408\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u6761\u4ef6\u5224\u65ad\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u5982<code>pandas<\/code>\u8fdb\u884c\u6279\u91cf\u5904\u7406\u548c\u4f18\u5316\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u7ec4\u5408\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5b8c\u6210\u5927\u5199\u5b57\u6bcd\u5230\u6570\u5b57\u7684\u8f6c\u6362\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5927\u5199\u5b57\u6bcd\u6620\u5c04\u5230\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u6765\u5c06\u5927\u5199\u5b57\u6bcd\u4e0e\u5bf9\u5e94\u7684\u6570\u5b57\u8fdb\u884c\u6620\u5c04\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u5b57\u6bcd&#39;A&#39;\u6620\u5c04\u4e3a1\uff0c&#39;B&#39;\u6620\u5c04\u4e3a2\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff0c\u76f4\u5230&#39;Z&#39;\u6620\u5c04\u4e3a26\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5b57\u6bcd\u8868\u5e76\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u79cd\u6620\u5c04\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u591a\u4e2a\u5927\u5199\u5b57\u6bcd\u7684\u8f6c\u6362\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u591a\u4e2a\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u4e3a\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408\u5b57\u5178\u6216<code>ord()<\/code>\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u6bcd\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u6570\u5b57\uff0c\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\uff0c\u65b9\u4fbf\u540e\u7eed\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u975e\u5927\u5199\u5b57\u6bcd\u5b57\u7b26\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u5927\u5199\u5b57\u6bcd\u5230\u6570\u5b57\u7684\u8f6c\u6362\u65f6\uff0c\u5efa\u8bae\u6dfb\u52a0\u6761\u4ef6\u5224\u65ad\uff0c\u4ee5\u8fc7\u6ee4\u6389\u975e\u5927\u5199\u5b57\u6bcd\u5b57\u7b26\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8f6c\u6362\u53ea\u9488\u5bf9\u6709\u6548\u5b57\u7b26\uff0c\u907f\u514d\u51fa\u73b0\u9519\u8bef\u6216\u4e0d\u5fc5\u8981\u7684\u8f93\u51fa\u3002\u53ef\u4ee5\u4f7f\u7528<code>isupper()<\/code>\u65b9\u6cd5\u6765\u68c0\u67e5\u5b57\u7b26\u662f\u5426\u4e3a\u5927\u5199\u5b57\u6bcd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5c06\u5927\u5199\u5b57\u6bcd\u8f6c\u6362\u6210\u6570\u5b57\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5185\u7f6e\u51fd\u6570ord()\u3001\u521b\u5efa\u6620\u5c04\u5b57\u5178\u3001\u5229\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u7b49 [&hellip;]","protected":false},"author":3,"featured_media":1145197,"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\/1145192"}],"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=1145192"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145192\/revisions"}],"predecessor-version":[{"id":1145198,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145192\/revisions\/1145198"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1145197"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1145192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1145192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1145192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}