{"id":1145328,"date":"2025-01-08T23:07:17","date_gmt":"2025-01-08T15:07:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1145328.html"},"modified":"2025-01-08T23:07:20","modified_gmt":"2025-01-08T15:07:20","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%b0%86%e4%ba%8c%e8%bf%9b%e5%88%b6%e8%bd%ac%e6%8d%a2%e4%b8%ba%e5%8d%81%e8%bf%9b%e5%88%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1145328.html","title":{"rendered":"\u5982\u4f55\u7528Python\u5c06\u4e8c\u8fdb\u5236\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181951\/f17e0ed8-b280-4bc2-8c55-0df41d792273.webp\" alt=\"\u5982\u4f55\u7528Python\u5c06\u4e8c\u8fdb\u5236\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5c06\u4e8c\u8fdb\u5236\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u624b\u52a8\u8ba1\u7b97\u3001\u4f4d\u64cd\u4f5c\u3001\u7ed3\u5408numpy\u8fdb\u884c\u8ba1\u7b97<\/strong>\u3002\u8fd9\u91cc\u8be6\u7ec6\u63cf\u8ff0\u4e00\u4e0b\u4f7f\u7528Python\u5185\u7f6e\u51fd\u6570\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u5185\u7f6e\u51fd\u6570 <code>int()<\/code>\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u6574\u6570\u3002\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">int(binary_string, 2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c<code>int(&#39;101&#39;, 2)<\/code> \u4f1a\u8fd4\u56de 5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u5feb\u901f\u3001\u7b80\u5355\uff0c\u9002\u5408\u5927\u591a\u6570\u9700\u6c42\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4ed6\u65b9\u6cd5\uff0c\u5e76\u8bf4\u660e\u5b83\u4eec\u7684\u5e94\u7528\u573a\u666f\u548c\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528Python\u5185\u7f6e\u51fd\u6570<\/h2>\n<\/p>\n<p><p>Python \u7684 <code>int()<\/code> \u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u5c06\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u6574\u6570\u3002\u8fd9\u662f\u6700\u76f4\u63a5\u4e5f\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002\u53ea\u9700\u8981\u4f20\u5165\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u548c\u57fa\u6570\uff082\uff09\uff0c\u51fd\u6570\u4f1a\u8fd4\u56de\u5bf9\u5e94\u7684\u5341\u8fdb\u5236\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">binary_string = &#39;1101&#39;<\/p>\n<p>decimal_number = int(binary_string, 2)<\/p>\n<p>print(f&quot;\u4e8c\u8fdb\u5236 {binary_string} \u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u662f: {decimal_number}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u7b80\u6d01\u4e14\u9ad8\u6548\u3002<code>int()<\/code> \u51fd\u6570\u662f Python \u7684\u5185\u7f6e\u51fd\u6570\uff0c\u6027\u80fd\u4f18\u5f02\uff0c\u9002\u5408\u5904\u7406\u5927\u90e8\u5206\u65e5\u5e38\u4efb\u52a1\u3002\u5bf9\u4e8e\u9700\u8981\u5feb\u901f\u8f6c\u6362\u7684\u573a\u666f\uff0c\u6bd4\u5982\u89e3\u6790\u7f51\u7edc\u6570\u636e\u5305\u3001\u5904\u7406\u6587\u4ef6\u4e2d\u7684\u4e8c\u8fdb\u5236\u6570\u636e\u7b49\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5c24\u4e3a\u9002\u7528\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u624b\u52a8\u8ba1\u7b97<\/h2>\n<\/p>\n<p><p>\u624b\u52a8\u8ba1\u7b97\u4e8c\u8fdb\u5236\u5230\u5341\u8fdb\u5236\u7684\u8f6c\u6362\u6d89\u53ca\u5230\u5c06\u6bcf\u4e00\u4e2a\u4e8c\u8fdb\u5236\u4f4d\u4e58\u4ee5\u76f8\u5e94\u76842\u7684\u5e42\uff0c\u7136\u540e\u6c42\u548c\u3002\u8fd9\u4e2a\u65b9\u6cd5\u867d\u7136\u7e41\u7410\uff0c\u4f46\u6709\u52a9\u4e8e\u7406\u89e3\u8f6c\u6362\u7684\u5e95\u5c42\u539f\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def binary_to_decimal(binary_string):<\/p>\n<p>    decimal_number = 0<\/p>\n<p>    for index, digit in enumerate(binary_string[::-1]):<\/p>\n<p>        decimal_number += int(digit) * (2  index)<\/p>\n<p>    return decimal_number<\/p>\n<p>binary_string = &#39;1101&#39;<\/p>\n<p>decimal_number = binary_to_decimal(binary_string)<\/p>\n<p>print(f&quot;\u4e8c\u8fdb\u5236 {binary_string} \u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u662f: {decimal_number}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u904d\u5386\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u7684\u6bcf\u4e00\u4f4d\uff0c\u4ece\u6700\u4f4e\u4f4d\u5f00\u59cb\uff0c\u4e58\u4ee52\u7684\u76f8\u5e94\u5e42\u6b21\uff0c\u7136\u540e\u7d2f\u52a0\u5f97\u5230\u5341\u8fdb\u5236\u7ed3\u679c\u3002\u867d\u7136\u4ee3\u7801\u76f8\u5bf9\u590d\u6742\uff0c\u4f46\u5bf9\u4e8e\u5b66\u4e60\u548c\u7406\u89e3\u4e8c\u8fdb\u5236\u4e0e\u5341\u8fdb\u5236\u4e4b\u95f4\u7684\u5173\u7cfb\u975e\u5e38\u6709\u5e2e\u52a9\u3002\u9002\u7528\u4e8e\u6559\u5b66\u548c\u9700\u8981\u6df1\u5165\u7406\u89e3\u8f6c\u6362\u539f\u7406\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528\u4f4d\u64cd\u4f5c<\/h2>\n<\/p>\n<p><p>\u4f4d\u64cd\u4f5c\u662f\u8ba1\u7b97\u673a\u5e95\u5c42\u8fd0\u7b97\u7684\u91cd\u8981\u90e8\u5206\uff0c\u901a\u8fc7\u4f4d\u79fb\u548c\u6309\u4f4d\u6216\u64cd\u4f5c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u4e8c\u8fdb\u5236\u5230\u5341\u8fdb\u5236\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def binary_to_decimal_via_bitwise(binary_string):<\/p>\n<p>    decimal_number = 0<\/p>\n<p>    for digit in binary_string:<\/p>\n<p>        decimal_number = (decimal_number &lt;&lt; 1) | int(digit)<\/p>\n<p>    return decimal_number<\/p>\n<p>binary_string = &#39;1101&#39;<\/p>\n<p>decimal_number = binary_to_decimal_via_bitwise(binary_string)<\/p>\n<p>print(f&quot;\u4e8c\u8fdb\u5236 {binary_string} \u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u662f: {decimal_number}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5229\u7528\u5de6\u79fb\u64cd\u4f5c <code>&lt;&lt;<\/code> \u5c06\u5f53\u524d\u7684\u5341\u8fdb\u5236\u6570\u503c\u4e58\u4ee52\uff0c\u7136\u540e\u901a\u8fc7\u6309\u4f4d\u6216\u64cd\u4f5c <code>|<\/code> \u5c06\u4e0b\u4e00\u4f4d\u4e8c\u8fdb\u5236\u6570\u5b57\u52a0\u5230\u7ed3\u679c\u4e2d\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9ad8\u6548\uff0c\u56e0\u4e3a\u4f4d\u64cd\u4f5c\u5728\u786c\u4ef6\u5c42\u9762\u4e0a\u6267\u884c\u901f\u5ea6\u6781\u5feb\u3002\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u6027\u80fd\u8ba1\u7b97\u7684\u573a\u666f\uff0c\u5982\u56fe\u50cf\u5904\u7406\u3001\u52a0\u5bc6\u7b97\u6cd5\u7b49\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u7ed3\u5408numpy\u8fdb\u884c\u8ba1\u7b97<\/h2>\n<\/p>\n<p><p><code>numpy<\/code> \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u3002\u4f7f\u7528 <code>numpy<\/code> \u53ef\u4ee5\u7b80\u5316\u4e8c\u8fdb\u5236\u5230\u5341\u8fdb\u5236\u7684\u8f6c\u6362\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u5927\u89c4\u6a21\u7684\u4e8c\u8fdb\u5236\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def binary_to_decimal_numpy(binary_string):<\/p>\n<p>    binary_array = np.array(list(binary_string), dtype=int)<\/p>\n<p>    powers_of_two = 2  np.arange(len(binary_string))[::-1]<\/p>\n<p>    decimal_number = np.sum(binary_array * powers_of_two)<\/p>\n<p>    return decimal_number<\/p>\n<p>binary_string = &#39;1101&#39;<\/p>\n<p>decimal_number = binary_to_decimal_numpy(binary_string)<\/p>\n<p>print(f&quot;\u4e8c\u8fdb\u5236 {binary_string} \u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u662f: {decimal_number}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0<\/h3>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5229\u7528\u4e86 <code>numpy<\/code> \u7684\u5411\u91cf\u5316\u64cd\u4f5c\uff0c\u5c06\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6570\u7ec4\uff0c\u901a\u8fc7\u6570\u7ec4\u8fd0\u7b97\u5feb\u901f\u8ba1\u7b97\u51fa\u5341\u8fdb\u5236\u6570\u503c\u3002<code>numpy<\/code> \u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u5bf9\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u7684\u4f18\u5316\uff0c\u9002\u5408\u9700\u8981\u5904\u7406\u5927\u91cf\u4e8c\u8fdb\u5236\u6570\u636e\u7684\u573a\u666f\uff0c\u5982\u6570\u636e\u5206\u6790\u3001\u79d1\u5b66\u8ba1\u7b97\u7b49\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u5e94\u7528\u573a\u666f\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h2>\n<\/p>\n<p><h3>1. \u6570\u636e\u89e3\u6790\u4e0e\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u7f51\u7edc\u7f16\u7a0b\u3001\u6587\u4ef6\u5904\u7406\u7b49\u9886\u57df\uff0c\u5e38\u5e38\u9700\u8981\u89e3\u6790\u548c\u5904\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u3002\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u53ef\u4ee5\u5feb\u901f\u5c06\u4e8c\u8fdb\u5236\u6570\u636e\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff0c\u65b9\u4fbf\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>2. \u6559\u5b66\u4e0e\u5b66\u4e60<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u521d\u5b66\u8005\uff0c\u4e86\u89e3\u4e8c\u8fdb\u5236\u4e0e\u5341\u8fdb\u5236\u4e4b\u95f4\u7684\u8f6c\u6362\u539f\u7406\u81f3\u5173\u91cd\u8981\u3002\u624b\u52a8\u8ba1\u7b97\u7684\u65b9\u6cd5\u867d\u7136\u7e41\u7410\uff0c\u4f46\u6709\u52a9\u4e8e\u6df1\u5165\u7406\u89e3\u8ba1\u7b97\u673a\u7684\u6570\u5236\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><h3>3. \u9ad8\u6027\u80fd\u8ba1\u7b97<\/h3>\n<\/p>\n<p><p>\u5728\u56fe\u50cf\u5904\u7406\u3001\u52a0\u5bc6\u7b97\u6cd5\u7b49\u5bf9\u6027\u80fd\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\uff0c\u4f7f\u7528\u4f4d\u64cd\u4f5c\u6216\u7ed3\u5408 <code>numpy<\/code> \u8fdb\u884c\u8ba1\u7b97\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>4. \u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<ul>\n<li><strong>\u8f93\u5165\u9a8c\u8bc1<\/strong>\uff1a\u786e\u4fdd\u8f93\u5165\u7684\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u5408\u6cd5\uff0c\u5373\u4ec5\u5305\u542b\u5b57\u7b26 &#39;0&#39; \u548c &#39;1&#39;\u3002<\/li>\n<li><strong>\u6027\u80fd\u4f18\u5316<\/strong>\uff1a\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\uff0c\u5efa\u8bae\u4f7f\u7528 <code>numpy<\/code> \u6216\u4f4d\u64cd\u4f5c\u65b9\u6cd5\uff0c\u4ee5\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u3002<\/li>\n<li><strong>\u4ee3\u7801\u53ef\u8bfb\u6027<\/strong>\uff1a\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u5c3d\u91cf\u9009\u62e9\u7b80\u6d01\u3001\u6613\u8bfb\u7684\u4ee3\u7801\uff0c\u4ee5\u4fbf\u7ef4\u62a4\u548c\u6269\u5c55\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\u548c\u8be6\u7ec6\u63cf\u8ff0\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u7075\u6d3b\u9009\u62e9\u5408\u9002\u7684\u4e8c\u8fdb\u5236\u5230\u5341\u8fdb\u5236\u7684\u8f6c\u6362\u65b9\u6cd5\u3002\u65e0\u8bba\u662f\u5feb\u901f\u5b9e\u73b0\u8fd8\u662f\u6df1\u5165\u5b66\u4e60\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u80fd\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u4e8c\u8fdb\u5236\u5230\u5341\u8fdb\u5236\u7684\u8f6c\u6362\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>int()<\/code>\u51fd\u6570\u6765\u5c06\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u3002\u4f8b\u5982\uff0c<code>int(&#39;1010&#39;, 2)<\/code>\u4f1a\u8fd4\u56de10\u3002\u8be5\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u8f6c\u6362\u7684\u5b57\u7b26\u4e32\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u8fdb\u5236\uff0c2\u8868\u793a\u4e8c\u8fdb\u5236\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u5c06\u4e8c\u8fdb\u5236\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff1f<\/strong><br \/>\u9664\u4e86<code>int()<\/code>\u51fd\u6570\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u548c\u6570\u5b66\u8fd0\u7b97\u624b\u52a8\u5b9e\u73b0\u8f6c\u6362\u3002\u901a\u8fc7\u4ece\u53f3\u5230\u5de6\u904d\u5386\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\uff0c\u60a8\u53ef\u4ee5\u5c06\u6bcf\u4e00\u4f4d\u4e58\u4ee52\u7684\u76f8\u5e94\u6b21\u5e42\u5e76\u6c42\u548c\u3002\u8fd9\u6837\u53ef\u4ee5\u589e\u5f3a\u5bf9\u4e8c\u8fdb\u5236\u548c\u5341\u8fdb\u5236\u4e4b\u95f4\u5173\u7cfb\u7684\u7406\u89e3\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u5e26\u6709\u524d\u7f00\u7684\u4e8c\u8fdb\u5236\u6570\uff1f<\/strong><br \/>\u5982\u679c\u4e8c\u8fdb\u5236\u6570\u5e26\u6709\u524d\u7f00<code>0b<\/code>\uff0c\u60a8\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u8fdb\u884c\u8f6c\u6362\u3002\u53ea\u9700\u5c06\u5b57\u7b26\u4e32\u76f4\u63a5\u4f20\u9012\u7ed9<code>int()<\/code>\uff0c\u4f8b\u5982<code>int(&#39;0b1010&#39;, 0)<\/code>\uff0cPython\u4f1a\u81ea\u52a8\u8bc6\u522b\u8be5\u524d\u7f00\u5e76\u8fdb\u884c\u8f6c\u6362\u3002\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5316\u4e86\u5904\u7406\u5e26\u6709\u524d\u7f00\u7684\u4e8c\u8fdb\u5236\u6570\u7684\u8fc7\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5c06\u4e8c\u8fdb\u5236\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u624b\u52a8\u8ba1\u7b97\u3001\u4f4d\u64cd\u4f5c\u3001\u7ed3\u5408numpy\u8fdb\u884c\u8ba1\u7b97\u3002\u8fd9\u91cc\u8be6 [&hellip;]","protected":false},"author":3,"featured_media":1145337,"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\/1145328"}],"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=1145328"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145328\/revisions"}],"predecessor-version":[{"id":1145339,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145328\/revisions\/1145339"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1145337"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1145328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1145328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1145328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}