{"id":1135868,"date":"2025-01-08T21:29:59","date_gmt":"2025-01-08T13:29:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1135868.html"},"modified":"2025-01-08T21:30:02","modified_gmt":"2025-01-08T13:30:02","slug":"python%e5%a6%82%e4%bd%95%e5%b0%8616%e8%bf%9b%e5%88%b6%e8%bd%ac%e6%8d%a2%e6%88%902%e8%bf%9b%e5%88%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1135868.html","title":{"rendered":"python\u5982\u4f55\u5c0616\u8fdb\u5236\u8f6c\u6362\u62102\u8fdb\u5236"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104417\/1006adc6-711f-49f7-ae21-e7f64fe8c5ef.webp\" alt=\"python\u5982\u4f55\u5c0616\u8fdb\u5236\u8f6c\u6362\u62102\u8fdb\u5236\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528bin()\u51fd\u6570\u548cint()\u51fd\u6570\u5c0616\u8fdb\u5236\u8f6c\u6362\u62102\u8fdb\u5236\u3001\u901a\u8fc7\u76f4\u63a5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u624b\u52a8\u8f6c\u6362\u65b9\u6cd5\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7b49\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u7ed9\u51fa\u5177\u4f53\u793a\u4f8b\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u4f7f\u5f97\u6570\u636e\u7c7b\u578b\u4e4b\u95f4\u7684\u8f6c\u6362\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u3002\u5728\u5c0616\u8fdb\u5236\u8f6c\u6362\u4e3a2\u8fdb\u5236\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u4f1a\u4f7f\u7528int()\u548cbin()\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528int()\u548cbin()\u51fd\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">hex_number = &quot;1A3F&quot;<\/p>\n<p>binary_number = bin(int(hex_number, 16))<\/p>\n<p>print(binary_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>int()\u51fd\u6570<\/strong>\uff1a\u5c06\u5b57\u7b26\u4e32\u7c7b\u578b\u768416\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a10\u8fdb\u5236\u6570\u3002<code>int(hex_number, 16)<\/code> \u4e2d\u7684 <code>16<\/code> \u8868\u793a\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u662f16\u8fdb\u5236\u6570\u3002<\/li>\n<li><strong>bin()\u51fd\u6570<\/strong>\uff1a\u5c0610\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a2\u8fdb\u5236\u6570\u3002\u8fd4\u56de\u7684\u7ed3\u679c\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u524d\u9762\u5e26\u6709&#39;0b&#39;\u524d\u7f00\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u624b\u52a8\u8f6c\u6362\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u624b\u52a8\u8f6c\u6362\u65b9\u6cd5\u867d\u7136\u7a0d\u663e\u7e41\u7410\uff0c\u4f46\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u7406\u89e3\u6570\u636e\u8f6c\u6362\u7684\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h4>1. \u9010\u4f4d\u8f6c\u6362<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def hex_to_bin(hex_number):<\/p>\n<p>    hex_dict = {<\/p>\n<p>        &#39;0&#39;: &#39;0000&#39;, &#39;1&#39;: &#39;0001&#39;, &#39;2&#39;: &#39;0010&#39;, &#39;3&#39;: &#39;0011&#39;,<\/p>\n<p>        &#39;4&#39;: &#39;0100&#39;, &#39;5&#39;: &#39;0101&#39;, &#39;6&#39;: &#39;0110&#39;, &#39;7&#39;: &#39;0111&#39;,<\/p>\n<p>        &#39;8&#39;: &#39;1000&#39;, &#39;9&#39;: &#39;1001&#39;, &#39;A&#39;: &#39;1010&#39;, &#39;B&#39;: &#39;1011&#39;,<\/p>\n<p>        &#39;C&#39;: &#39;1100&#39;, &#39;D&#39;: &#39;1101&#39;, &#39;E&#39;: &#39;1110&#39;, &#39;F&#39;: &#39;1111&#39;<\/p>\n<p>    }<\/p>\n<p>    binary_number = &#39;&#39;.join([hex_dict[digit] for digit in hex_number])<\/p>\n<p>    return binary_number<\/p>\n<p>hex_number = &quot;1A3F&quot;<\/p>\n<p>binary_number = hex_to_bin(hex_number)<\/p>\n<p>print(binary_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u521b\u5efa\u4e00\u4e2a\u5b57\u5178<code>hex_dict<\/code>\uff0c\u5c06\u6bcf\u4e2a16\u8fdb\u5236\u5b57\u7b26\u5bf9\u5e94\u5230\u51762\u8fdb\u5236\u8868\u793a\u3002<\/li>\n<li>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u9010\u4f4d\u8f6c\u6362\uff0c\u5e76\u5c06\u7ed3\u679c\u62fc\u63a5\u6210\u4e00\u4e2a\u5b8c\u6574\u76842\u8fdb\u5236\u5b57\u7b26\u4e32\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>Python 3.6\u5f15\u5165\u4e86f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff09\uff0c\u5b83\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u8fdb\u884c\u5404\u79cd\u7c7b\u578b\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528f-string<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">hex_number = &quot;1A3F&quot;<\/p>\n<p>binary_number = f&#39;{int(hex_number, 16):b}&#39;<\/p>\n<p>print(binary_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>f-string<\/strong>\uff1a\u901a\u8fc7<code>f&#39;{\u8868\u8fbe\u5f0f}&#39;<\/code>\u7684\u5f62\u5f0f\u6765\u8fdb\u884c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3002<\/li>\n<li><code>:b<\/code>\uff1a\u8868\u793a\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u5f62\u5f0f\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u5904\u7406\u5927\u6570\u636e\u548c\u7279\u6b8a\u60c5\u51b5<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5904\u7406\u975e\u5e38\u5927\u7684\u6570\u503c\u6216\u8005\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u5982\u8d1f\u6570\u6216\u4e0d\u540c\u6570\u636e\u7c7b\u578b\u7684\u8f93\u5165\u3002<\/p>\n<\/p>\n<p><h4>1. \u5904\u7406\u5927\u6570\u503c<\/h4>\n<\/p>\n<p><p>Python\u7684\u6574\u6570\u7c7b\u578b\u662f\u65e0\u9650\u7cbe\u5ea6\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u5904\u7406\u4efb\u610f\u5927\u5c0f\u7684\u6570\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">hex_number = &quot;FFFFFFFFFFFFFFFF&quot;<\/p>\n<p>binary_number = bin(int(hex_number, 16))<\/p>\n<p>print(binary_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5904\u7406\u8d1f\u6570<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u8d1f\u6570\uff0c\u6211\u4eec\u9700\u8981\u7279\u522b\u5904\u7406\u7b26\u53f7\u4f4d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def hex_to_bin_with_sign(hex_number):<\/p>\n<p>    if hex_number[0] == &#39;-&#39;:<\/p>\n<p>        return &#39;-&#39; + bin(int(hex_number[1:], 16))<\/p>\n<p>    else:<\/p>\n<p>        return bin(int(hex_number, 16))<\/p>\n<p>hex_number = &quot;-1A3F&quot;<\/p>\n<p>binary_number = hex_to_bin_with_sign(hex_number)<\/p>\n<p>print(binary_number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5e94\u7528\u573a\u666f\u548c\u6027\u80fd\u4f18\u5316<\/h3>\n<\/p>\n<p><h4>1. \u5e94\u7528\u573a\u666f<\/h4>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5c0616\u8fdb\u5236\u8f6c\u6362\u4e3a2\u8fdb\u5236\u7684\u64cd\u4f5c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u8ba1\u7b97\u673a\u79d1\u5b66\u548c\u5de5\u7a0b\u9886\u57df\uff0c\u5982\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7f51\u7edc\u7f16\u7a0b<\/strong>\uff1aIP\u5730\u5740\u548cMAC\u5730\u5740\u7684\u8f6c\u6362\u3002<\/li>\n<li><strong>\u5d4c\u5165\u5f0f\u7cfb\u7edf<\/strong>\uff1a\u5904\u7406\u4f4e\u7ea7\u522b\u7684\u786c\u4ef6\u5bc4\u5b58\u5668\u3002<\/li>\n<li><strong>\u6570\u636e\u52a0\u5bc6<\/strong>\uff1a\u5728\u52a0\u5bc6\u548c\u89e3\u5bc6\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u4e0d\u540c\u8fdb\u5236\u4e4b\u95f4\u7684\u8f6c\u6362\u3002<\/li>\n<\/ul>\n<p><h4>2. \u6027\u80fd\u4f18\u5316<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u7684\u8f6c\u6362\uff0c\u6548\u7387\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u91cf\u56e0\u7d20\u3002\u5c3d\u7ba1Python\u7684\u5185\u7f6e\u51fd\u6570\u5df2\u7ecf\u975e\u5e38\u9ad8\u6548\uff0c\u4f46\u6211\u4eec\u4ecd\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u4f18\u5316\u6027\u80fd\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6279\u91cf\u5904\u7406<\/strong>\uff1a\u5c06\u591a\u4e2a16\u8fdb\u5236\u6570\u4e00\u6b21\u6027\u8f6c\u6362\u4e3a2\u8fdb\u5236\u6570\u3002<\/li>\n<li><strong>\u591a\u7ebf\u7a0b<\/strong>\uff1a\u5229\u7528Python\u7684\u591a\u7ebf\u7a0b\u5e93\uff0c\u5982<code>concurrent.futures<\/code>\uff0c\u5b9e\u73b0\u5e76\u884c\u5904\u7406\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">import concurrent.futures<\/p>\n<p>def hex_to_bin(hex_number):<\/p>\n<p>    return bin(int(hex_number, 16))<\/p>\n<p>hex_numbers = [&quot;1A3F&quot;, &quot;2B4E&quot;, &quot;3C5D&quot;, &quot;4D6C&quot;, &quot;5E7B&quot;]<\/p>\n<p>with concurrent.futures.ThreadPoolExecutor() as executor:<\/p>\n<p>    results = list(executor.map(hex_to_bin, hex_numbers))<\/p>\n<p>print(results)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5728Python\u4e2d\u5c0616\u8fdb\u5236\u8f6c\u6362\u4e3a2\u8fdb\u5236\u7684\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u624b\u52a8\u8f6c\u6362\u548c\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7b49\u3002\u6211\u4eec\u8fd8\u63a2\u8ba8\u4e86\u5904\u7406\u5927\u6570\u636e\u548c\u7279\u6b8a\u60c5\u51b5\u7684\u65b9\u6cd5\uff0c\u4ee5\u53ca\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p><strong>\u6838\u5fc3\u8981\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528<strong>int()\u548cbin()\u51fd\u6570<\/strong>\u53ef\u4ee5\u7b80\u4fbf\u5730\u8fdb\u884c\u8f6c\u6362\u3002<\/li>\n<li>\u624b\u52a8\u8f6c\u6362\u65b9\u6cd5\u6709\u52a9\u4e8e\u6df1\u5165\u7406\u89e3\u8fdb\u5236\u8f6c\u6362\u7684\u539f\u7406\u3002<\/li>\n<li><strong>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong>\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u9ad8\u6548\u7684\u8f6c\u6362\u65b9\u5f0f\u3002<\/li>\n<li>\u5728\u5904\u7406\u5927\u6570\u636e\u548c\u7279\u6b8a\u60c5\u51b5\u65f6\uff0c\u9700\u8981\u7279\u522b\u6ce8\u610f<strong>\u7b26\u53f7\u4f4d<\/strong>\u548c<strong>\u6570\u636e\u7c7b\u578b<\/strong>\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u7075\u6d3b\u5e94\u5bf9\u5404\u79cd\u573a\u666f\u4e0b\u7684\u8fdb\u5236\u8f6c\u6362\u9700\u6c42\uff0c\u63d0\u5347\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b016\u8fdb\u5236\u52302\u8fdb\u5236\u7684\u8f6c\u6362\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>int()<\/code>\u51fd\u6570\u5c0616\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u7136\u540e\u5229\u7528<code>bin()<\/code>\u51fd\u6570\u5c06\u8be5\u6574\u6570\u8f6c\u6362\u4e3a2\u8fdb\u5236\u683c\u5f0f\u3002\u4f8b\u5982\uff0c<code>bin(int(&#39;1A&#39;, 16))<\/code>\u5c06\u8fd4\u56de&#39;0b11010&#39;\uff0c\u5176\u4e2d&#39;0b&#39;\u8868\u793a\u8fd9\u662f\u4e00\u4e2a2\u8fdb\u5236\u6570\u3002\u4f60\u53ef\u4ee5\u53bb\u6389&#39;0b&#39;\u90e8\u5206\uff0c\u53ea\u4fdd\u7559\u6570\u5b57\u90e8\u5206\u3002<\/p>\n<p><strong>\u6709\u4ec0\u4e48\u5e93\u53ef\u4ee5\u7b80\u531616\u8fdb\u5236\u52302\u8fdb\u5236\u7684\u8f6c\u6362\u8fc7\u7a0b\uff1f<\/strong><br \/>\u867d\u7136Python\u7684\u5185\u7f6e\u51fd\u6570\u5df2\u7ecf\u8db3\u591f\u5f3a\u5927\uff0c\u4f46\u4f7f\u7528<code>numpy<\/code>\u6216<code>pandas<\/code>\u7b49\u5e93\u4e5f\u80fd\u7b80\u5316\u6570\u636e\u5904\u7406\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u66f4\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\uff0c\u9002\u5408\u5904\u7406\u5927\u91cf\u7684\u8f6c\u6362\u9700\u6c42\u3002\u4f8b\u5982\uff0c<code>numpy<\/code>\u53ef\u4ee5\u901a\u8fc7<code>numpy.binary_repr()<\/code>\u51fd\u6570\u76f4\u63a5\u5c06\u6570\u503c\u8f6c\u6362\u4e3a2\u8fdb\u5236\u5b57\u7b26\u4e32\uff0c\u5c24\u5176\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u96c6\u3002<\/p>\n<p><strong>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u8d1f\u6570\u768416\u8fdb\u5236\u6570\uff1f<\/strong><br \/>\u5728\u5904\u7406\u8d1f\u6570\u768416\u8fdb\u5236\u6570\u65f6\uff0c\u53ef\u4ee5\u5148\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u4e4b\u540e\u4f7f\u7528\u4e8c\u8fdb\u5236\u7684\u8865\u7801\u8868\u793a\u6cd5\u6765\u5f97\u5230\u5bf9\u5e94\u76842\u8fdb\u5236\u5f62\u5f0f\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u5c06\u8d1f\u6570\u768416\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u8d1f\u6574\u6570\uff0c\u7136\u540e\u518d\u4f7f\u7528<code>bin()<\/code>\u51fd\u6570\u8f6c\u6362\u3002\u4f8b\u5982\uff0c<code>bin(int(&#39;-1A&#39;, 16))<\/code>\u5c06\u8fd4\u56de\u8d1f\u6570\u7684\u4e8c\u8fdb\u5236\u8868\u793a\u5f62\u5f0f\uff0c\u786e\u4fdd\u5728\u663e\u793a\u65f6\u80fd\u6b63\u786e\u5904\u7406\u8d1f\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528bin()\u51fd\u6570\u548cint()\u51fd\u6570\u5c0616\u8fdb\u5236\u8f6c\u6362\u62102\u8fdb\u5236\u3001\u901a\u8fc7\u76f4\u63a5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u624b\u52a8\u8f6c\u6362 [&hellip;]","protected":false},"author":3,"featured_media":1135876,"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\/1135868"}],"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=1135868"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1135868\/revisions"}],"predecessor-version":[{"id":1135878,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1135868\/revisions\/1135878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1135876"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1135868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1135868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1135868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}