{"id":176803,"date":"2024-05-08T19:18:15","date_gmt":"2024-05-08T11:18:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/176803.html"},"modified":"2024-05-08T19:18:22","modified_gmt":"2024-05-08T11:18:22","slug":"python%e6%80%8e%e4%b9%88%e6%8a%8a01%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e4%b8%ba%e4%ba%8c%e8%bf%9b%e5%88%b6bytes%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/176803.html","title":{"rendered":"python\u600e\u4e48\u628a01\u5b57\u7b26\u4e32\u8f6c\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27060602\/c5aef57e-8024-49ec-a398-725b7dbd8e37.webp\" alt=\"python\u600e\u4e48\u628a01\u5b57\u7b26\u4e32\u8f6c\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\" \/><\/p>\n<p><p>\u4e3a\u4e86\u5c0601\u5b57\u7b26\u4e32\u8f6c\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\uff0c\u60a8\u9700\u8981\u6309\u5982\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<strong>\u9996\u5148\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u62108\u4f4d\u7684\u4e00\u7ec4\u3001\u518d\u4f7f\u7528Python\u5185\u7f6e\u7684int\u51fd\u6570\u5c06\u6bcf\u7ec4\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u5e76\u6307\u5b9a\u8fdb\u5236\u4e3a2\u3001\u6700\u540e\u5c06\u8fd9\u4e9b\u6574\u6570\u4f7f\u7528bytes\u51fd\u6570\u96c6\u5408\u8d77\u6765\u5f62\u6210\u6700\u7ec8\u7684Bytes\u4e32<\/strong>\u3002\u8ba9\u6211\u4eec\u8fdb\u4e00\u6b65\u4e86\u89e3\u8fd9\u4e2a\u8fc7\u7a0b\u53ca\u76f8\u5173\u7684\u6982\u5ff5\u3002<\/p>\n<\/p>\n<p><p>Python\u901a\u8fc7\u63d0\u4f9b\u7b80\u6d01\u7684\u8bed\u6cd5\u5c06\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\uff08\u4ec5\u5305\u542b0\u548c1\uff09\u8f6c\u6362\u4e3a\u5b57\u8282\u4e32\u3002\u8fd9\u4e00\u64cd\u4f5c\u5bf9\u4e8e\u9700\u8981\u5728\u4e8c\u8fdb\u5236\u5c42\u9762\u4e0a\u64cd\u4f5c\u6570\u636e\u7684\u4efb\u52a1\u6765\u8bf4\u5c24\u4e3a\u91cd\u8981\uff0c\u4f8b\u5982\u52a0\u5bc6\u3001\u7f16\u7801\u8f6c\u6362\u3001\u6570\u636e\u4f20\u8f93\u7b49\u9886\u57df\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b57\u7b26\u4e32\u5206\u5272<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u662f8\u7684\u500d\u6570\u3002\u8fd9\u662f\u56e0\u4e3a\u4e00\u4e2a\u4e8c\u8fdb\u5236\u5b57\u8282\u75318\u4f4d\u7ec4\u6210\u3002\u5982\u679c\u5b57\u7b26\u4e32\u4e0d\u6ee1\u8db3\u8fd9\u4e00\u6761\u4ef6\uff0c\u5b83\u53ef\u80fd\u9700\u8981\u88ab\u9002\u5f53\u5730\u586b\u5145\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def ensure_length(string_bin):<\/p>\n<p>    # \u82e5\u5b57\u7b26\u4e32\u957f\u5ea6\u4e0d\u662f8\u7684\u500d\u6570\uff0c\u8fdb\u884c\u586b\u5145<\/p>\n<p>    padding_size = 8 - (len(string_bin) % 8)<\/p>\n<p>    padding = &#039;0&#039; * padding_size<\/p>\n<p>    padded_binary = padding + string_bin<\/p>\n<p>    return padded_binary<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5904\u7406\u6bcf\u4e2a8\u4f4d\u5b57\u7b26\u7ec4\uff0c\u4f7f\u7528Python\u7684<code>int<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u76f8\u5e94\u7684\u6574\u6570\u3002<code>int<\/code>\u51fd\u6570\u5141\u8bb8\u6211\u4eec\u6307\u5b9a\u8f6c\u6362\u6240\u57fa\u4e8e\u7684\u6570\u5236\uff0c\u5728\u6b64\u60c5\u51b5\u4e0b\u4e3a\u4e8c\u8fdb\u5236\uff08\u5373\u57fa\u6570\u662f2\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def binary_group_to_int(binary_group):<\/p>\n<p>    return int(binary_group, 2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u8f6c\u6362\u4e3aBytes\u4e32<\/h3>\n<\/p>\n<p><p>\u6700\u540e\u4e00\u6b65\u662f\u5c06\u6240\u6709\u7684\u6574\u6570\u8f6c\u6362\u4e3a\u4e00\u4e2abytes\u5bf9\u8c61\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u6574\u6570\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>bytes<\/code>\u51fd\u6570\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def binary_to_bytes(binary_string):<\/p>\n<p>    padded_binary = ensure_length(binary_string)<\/p>\n<p>    # \u521b\u5efa\u4e00\u4e2aint\u7c7b\u578b\u5217\u8868\uff0c\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f\u4e00\u4e2a8\u4f4d\u6570\u7684\u6574\u6570\u8868\u793a<\/p>\n<p>    bytes_list = [binary_group_to_int(padded_binary[i:i+8]) for i in range(0, len(padded_binary), 8)]<\/p>\n<p>    # \u5229\u7528bytes\u51fd\u6570\u5c06\u5217\u8868\u8f6c\u6362\u4e3abytes\u5bf9\u8c61<\/p>\n<p>    return bytes(bytes_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5e94\u7528\u8fd9\u4e9b\u51fd\u6570\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3abytes\uff0c\u5047\u8bbe\u6709\u4e00\u4e2a01\u5b57\u7b26\u4e32<code>binary_string = &#039;0100000101000010&#039;<\/code>\uff08\u5b83\u4ee3\u8868\u4e86ASCII\u4e2d\u7684\u201cA\u201d\u548c\u201cB\u201d\u5b57\u7b26\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">converted_bytes = binary_to_bytes(binary_string)<\/p>\n<p>print(converted_bytes)  # \u8f93\u51fa: b&#039;AB&#039;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u8fd9\u4e2a\u6b65\u9aa4\uff0c\u6211\u4eec\u6210\u529f\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e86\u4e8c\u8fdb\u5236\u7684Bytes\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u4e00\u4e9b\u76f8\u5173\u7684\u77e5\u8bc6\u70b9\uff0c\u4ee5\u4fbf\u6df1\u5165\u7406\u89e3\u548c\u638c\u63e1\u4e0a\u8ff0\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u4f7f\u7528\u5230\u7684\u6982\u5ff5\u548c\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7406\u89e3\u4e8c\u8fdb\u5236\u548cBytes<\/h3>\n<\/p>\n<p><p><strong>\u4e8c\u8fdb\u5236\u6570\u7684\u7406\u89e3<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8ba1\u7b97\u673a\u79d1\u5b66\u4e2d\uff0c<strong>\u4e8c\u8fdb\u5236\u6570\u662f\u4fe1\u606f\u7684\u57fa\u7840\u8868\u793a\u5f62\u5f0f<\/strong>\u3002\u6bcf\u4e2a\u4e8c\u8fdb\u5236\u6570\u5b57\u79f0\u4e3a\u4e00\u4f4d\uff08bit\uff09\uff0c\u4ee3\u8868\u7684\u662f\u7535\u5b50\u72b6\u6001\uff0c\u901a\u5e38\u53ea\u6709\u4e24\u79cd\uff1a\u5f00\uff081\uff09\u6216\u5173\uff080\uff09\u3002<\/p>\n<\/p>\n<p><p><strong>Bytes\u7684\u57fa\u672c\u77e5\u8bc6<\/strong><\/p>\n<\/p>\n<p><p>Byte\u662f\u7ec4\u6210\u6570\u5b57\u4fe1\u606f\u7684\u57fa\u672c\u5355\u4f4d\uff0c\u4e00\u822c\u75318\u4f4d\uff08bit\uff09\u7ec4\u6210\u3002\u5728\u5904\u7406\u8ba1\u7b97\u673a\u4e2d\u7684\u6587\u672c\u6587\u4ef6\u3001\u56fe\u50cf\u6216\u97f3\u9891\u7b49\u6570\u636e\u65f6\uff0cBytes\u7684\u6982\u5ff5\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u8be6\u7ec6\u89e3\u8bfbint\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>int<\/code>\u51fd\u6570\u5728Python\u4e2d\u6709\u591a\u79cd\u7528\u9014\u3002\u8f6c\u6362\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u65f6\uff0c<strong>\u6211\u4eec\u4f7f\u7528\u5b83\u6765\u5c06\u5b57\u7b26\u4e32\u8868\u793a\u7684\u4e8c\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u6574\u6570<\/strong>\u3002\u6307\u5b9a\u8fdb\u5236\u4e3a2\uff0c\u5373\u544a\u8bc9\u51fd\u6570\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8e2\u7684\u6570\uff0c\u800c\u4e0d\u662f\u9ed8\u8ba4\u7684\u5341\u8fdb\u5236\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001Bytes\u5bf9\u8c61\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0cBytes\u5bf9\u8c61\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u7528\u4e8e\u8868\u793a\u4e8c\u8fdb\u5236\u6570\u636e\u3002<strong>\u4e00\u65e6\u521b\u5efa\uff0c\u5c31\u65e0\u6cd5\u66f4\u6539Bytes\u5bf9\u8c61\u4e2d\u7684\u5185\u5bb9<\/strong>\uff0c\u4f46\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u521b\u5efa\u65b0\u7684Bytes\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u6027\u80fd\u4f18\u5316<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u4e3a\u4e86\u4f18\u5316\u5904\u7406\u901f\u5ea6\uff0c\u53ef\u80fd\u9700\u8981\u91c7\u53d6\u4e00\u4e9b\u65b9\u6cd5\u6765\u63d0\u9ad8\u8f6c\u6362\u6548\u7387\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5185\u5efa\u51fd\u6570\u6216\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u8bb8\u591a\u7f16\u7a0b\u4efb\u52a1\u4e2d\uff0c\u5982\u5904\u7406\u7f51\u7edc\u901a\u4fe1\u6570\u636e\u3001\u5199\u8bfb\u4e8c\u8fdb\u5236\u6587\u4ef6\u6216\u8fdb\u884c\u52a0\u5bc6\u89e3\u5bc6\u64cd\u4f5c\u7b49\uff0c\u90fd\u4f1a\u7528\u5230\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u5230Bytes\u5bf9\u8c61\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u9519\u8bef\u5904\u7406\u4e0e\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>\u5f53\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\u65f6\uff0c\u6b63\u786e\u5904\u7406\u9519\u8bef\u4fe1\u606f\u4ee5\u53ca\u638c\u63e1\u8c03\u8bd5\u6280\u5de7\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\u3002\u6bd4\u5982\uff0c\u5904\u7406\u975e01\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3001\u4fee\u6b63\u957f\u5ea6\u4e0d\u4e3a8\u500d\u6570\u7684\u60c5\u51b5\u7b49\u90fd\u662f\u6211\u4eec\u9700\u8981\u8003\u8651\u7684\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u8be6\u7ec6\u7684\u6b65\u9aa4\u548c\u76f8\u5173\u77e5\u8bc6\u7684\u8bb2\u89e3\uff0c\u76f8\u4fe1\u60a8\u73b0\u5728\u5df2\u7ecf\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u7684Bytes\u4e32\uff0c\u4ee5\u53ca\u5728Python\u4e2d\u4f7f\u7528\u76f8\u5173\u51fd\u6570\u7684\u65b9\u6cd5\u3002\u8fd9\u4e0d\u4ec5\u4ec5\u662f\u6280\u672f\u4e0a\u7684\u5b9e\u73b0\uff0c\u66f4\u5173\u952e\u7684\u662f\u7406\u89e3\u80cc\u540e\u7684\u4e8c\u8fdb\u5236\u539f\u7406\uff0c\u4ee5\u4fbf\u5728\u590d\u6742\u7684\u8ba1\u7b97\u95ee\u9898\u4e2d\u7075\u6d3b\u8fd0\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q1: \u5728python\u4e2d\u5982\u4f55\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32?<\/strong><\/p>\n<p>A1: \u8981\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528python\u4e2d\u7684\u5b57\u7b26\u4e32\u7f16\u7801\u529f\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528<code>encode<\/code>\u51fd\u6570\u5c0601\u5b57\u7b26\u4e32\u7f16\u7801\u4e3a\u6307\u5b9a\u7f16\u7801\u7684Bytes\u4e32\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">binary_string = &quot;01010110&quot;\nbinary_bytes = binary_string.encode(&#039;utf-8&#039;) # \u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3autf-8\u7684Bytes\u4e32\nprint(binary_bytes)\n<\/code><\/pre>\n<p><strong>Q2: \u5728python\u4e2d\u5982\u4f55\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\uff0c\u5e76\u4ee5\u5176\u4ed6\u7f16\u7801\u683c\u5f0f\u8fdb\u884c\u7f16\u7801?<\/strong><\/p>\n<p>A2: \u5982\u679c\u4f60\u60f3\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\uff0c\u5e76\u4e14\u5e0c\u671b\u4f7f\u7528\u5176\u4ed6\u7f16\u7801\u683c\u5f0f\u8fdb\u884c\u7f16\u7801\uff0c\u53ef\u4ee5\u5c06<code>encode<\/code>\u51fd\u6570\u4e2d\u7684\u7f16\u7801\u53c2\u6570\u66f4\u6539\u4e3a\u4f60\u6240\u9700\u7684\u7f16\u7801\u683c\u5f0f\u5373\u53ef\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">binary_string = &quot;01010110&quot;\nbinary_bytes = binary_string.encode(&#039;utf-16&#039;) # \u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3autf-16\u7684Bytes\u4e32\nprint(binary_bytes)\n<\/code><\/pre>\n<p><strong>Q3: \u5728python\u4e2d\u5982\u4f55\u5c0601\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\uff0c\u5e76\u8fdb\u884c\u4f4d\u64cd\u4f5c\u64cd\u4f5c\uff1f<\/strong><\/p>\n<p>A3: \u5982\u679c\u4f60\u60f3\u5bf901\u5b57\u7b26\u4e32\u8f6c\u6362\u7684\u4e8c\u8fdb\u5236Bytes\u4e32\u8fdb\u884c\u4f4d\u64cd\u4f5c\uff0c\u53ef\u4ee5\u5148\u5c06\u5176\u89e3\u7801\u4e3a\u5b57\u8282\u6570\u7ec4\uff08bytearray\uff09\uff0c\u7136\u540e\u8fdb\u884c\u4f4d\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">binary_string = &quot;01010110&quot;\nbinary_bytes = binary_string.encode(&#039;utf-8&#039;) # \u5c06\u5b57\u7b26\u4e32\u7f16\u7801\u4e3autf-8\u7684Bytes\u4e32\nbyte_array = bytearray(binary_bytes) # \u5c06Bytes\u4e32\u89e3\u7801\u4e3a\u5b57\u8282\u6570\u7ec4\n\n# \u5bf9\u5b57\u8282\u6570\u7ec4\u8fdb\u884c\u4f4d\u64cd\u4f5c\nfor i, byte in enumerate(byte_array):\n    byte_array[i] = byte &amp; 0b11111110 # \u5c06\u5b57\u8282\u7684\u6700\u4f4e\u4f4d\u8bbe\u7f6e\u4e3a0\n\nresult_bytes = bytes(byte_array) # \u5c06\u5b57\u8282\u6570\u7ec4\u8f6c\u6362\u4e3aBytes\u4e32\nprint(result_bytes)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u4e3a\u4e86\u5c0601\u5b57\u7b26\u4e32\u8f6c\u4e3a\u4e8c\u8fdb\u5236Bytes\u4e32\uff0c\u60a8\u9700\u8981\u6309\u5982\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\u9996\u5148\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u62108\u4f4d\u7684\u4e00\u7ec4\u3001\u518d\u4f7f\u7528Python [&hellip;]","protected":false},"author":3,"featured_media":176818,"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\/176803"}],"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=176803"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/176803\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/176818"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=176803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=176803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=176803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}