{"id":1137506,"date":"2025-01-08T21:49:29","date_gmt":"2025-01-08T13:49:29","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1137506.html"},"modified":"2025-01-08T21:49:31","modified_gmt":"2025-01-08T13:49:31","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e4%b8%80%e4%b8%b2%e5%8e%9f%e7%a0%81%e6%98%be%e7%a4%ba%e5%87%ba%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1137506.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51fa\u4e00\u4e32\u539f\u7801\u663e\u793a\u51fa\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101316\/af403626-8cab-4ddd-a9cc-d7a1acb949d4.webp\" alt=\"python\u5982\u4f55\u8f93\u51fa\u4e00\u4e32\u539f\u7801\u663e\u793a\u51fa\u6570\" \/><\/p>\n<p><p> <strong>Python\u8f93\u51fa\u4e00\u4e32\u539f\u7801\u663e\u793a\u51fa\u7684\u6570\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u3001\u4f7f\u7528<code>bytearray<\/code>\u5bf9\u8c61\u3001\u4f7f\u7528<code>struct<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>bin()<\/code>\u51fd\u6570\u3002<\/strong> \u5176\u4e2d\uff0c<code>ord()<\/code>\u51fd\u6570\u80fd\u591f\u5c06\u5355\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u4e2a\u5b57\u7b26\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u8f93\u51fa\u4e00\u4e32\u539f\u7801\u663e\u793a\u51fa\u7684\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>ord()<\/code>\u51fd\u6570\u662fPython\u5185\u7f6e\u51fd\u6570\u4e4b\u4e00\uff0c\u7528\u4e8e\u5c06\u5355\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\u3002\u8fd9\u5728\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u4e2a\u5b57\u7b26\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello&quot;<\/p>\n<p>for char in string:<\/p>\n<p>    print(ord(char))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5b57\u7b26\u4e32&quot;Hello&quot;\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u90fd\u4f1a\u88ab\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684ASCII\u7801\u503c\u5e76\u6253\u5370\u51fa\u6765\u3002\u4f8b\u5982\uff0c\u5b57\u7b26&#39;H&#39;\u7684ASCII\u7801\u503c\u662f72\uff0c\u5b57\u7b26&#39;e&#39;\u7684ASCII\u7801\u503c\u662f101\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528<code>bytearray<\/code>\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p><code>bytearray<\/code>\u5bf9\u8c61\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\u6570\u7ec4\uff0c\u7136\u540e\u53ef\u4ee5\u6309\u9700\u8bbf\u95ee\u548c\u64cd\u4f5c\u8fd9\u4e9b\u5b57\u8282\u3002\u5b83\u9002\u7528\u4e8e\u5904\u7406\u9700\u8981\u6309\u5b57\u8282\u64cd\u4f5c\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello&quot;<\/p>\n<p>byte_array = bytearray(string, &#39;utf-8&#39;)<\/p>\n<p>for byte in byte_array:<\/p>\n<p>    print(byte)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5b57\u7b26\u4e32&quot;Hello&quot;\u88ab\u8f6c\u6362\u4e3a\u4e00\u4e2a\u5b57\u8282\u6570\u7ec4\uff0c\u5e76\u4e14\u6bcf\u4e2a\u5b57\u8282\uff08\u5373\u6bcf\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u503c\uff09\u90fd\u4f1a\u88ab\u6253\u5370\u51fa\u6765\u3002\u5b57\u7b26&#39;H&#39;\u7684ASCII\u7801\u503c\u662f72\uff0c\u5b57\u7b26&#39;e&#39;\u7684ASCII\u7801\u503c\u662f101\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>struct<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>struct<\/code>\u6a21\u5757\u7528\u4e8e\u5728Python\u4e2d\u5904\u7406C\u8bed\u8a00\u98ce\u683c\u7684\u7ed3\u6784\u4f53\u3002\u5b83\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u8282\uff0c\u5e76\u5c06\u8fd9\u4e9b\u5b57\u8282\u89e3\u91ca\u4e3a\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import struct<\/p>\n<p>string = &quot;Hello&quot;<\/p>\n<p>packed_data = struct.pack(f&#39;{len(string)}s&#39;, string.encode())<\/p>\n<p>unpacked_data = struct.unpack(f&#39;{len(string)}B&#39;, packed_data)<\/p>\n<p>print(unpacked_data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5b57\u7b26\u4e32&quot;Hello&quot;\u88ab\u6253\u5305\u4e3a\u5b57\u8282\u6570\u636e\uff0c\u7136\u540e\u8fd9\u4e9b\u5b57\u8282\u6570\u636e\u88ab\u89e3\u5305\u4e3a\u6574\u6570\u503c\uff0c\u5e76\u6253\u5370\u51fa\u6765\u3002\u5b57\u7b26&#39;H&#39;\u7684ASCII\u7801\u503c\u662f72\uff0c\u5b57\u7b26&#39;e&#39;\u7684ASCII\u7801\u503c\u662f101\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528<code>bin()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>bin()<\/code>\u51fd\u6570\u7528\u4e8e\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u8868\u793a\u3002\u8fd9\u5728\u9700\u8981\u67e5\u770b\u5b57\u7b26\u4e32\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u7684\u4e8c\u8fdb\u5236\u8868\u793a\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello&quot;<\/p>\n<p>for char in string:<\/p>\n<p>    print(bin(ord(char)))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5b57\u7b26\u4e32&quot;Hello&quot;\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u90fd\u4f1a\u88ab\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684ASCII\u7801\u503c\uff0c\u7136\u540e\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u5b57\u7b26\u4e32\u5e76\u6253\u5370\u51fa\u6765\u3002\u4f8b\u5982\uff0c\u5b57\u7b26&#39;H&#39;\u7684ASCII\u7801\u503c\u662f72\uff0c\u5176\u4e8c\u8fdb\u5236\u8868\u793a\u662f<code>0b1001000<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u8be6\u7ec6\u63cf\u8ff0\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>ord()<\/code>\u51fd\u6570\u662f\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u4f46\u529f\u80fd\u5f3a\u5927\u7684\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5c06\u5355\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\uff0c\u8fd9\u5bf9\u4e8e\u5904\u7406\u9700\u8981\u6309\u5b57\u7b26\u64cd\u4f5c\u7684\u5b57\u7b26\u4e32\u975e\u5e38\u6709\u7528\u3002\u4f8b\u5982\uff0c\u5728\u52a0\u5bc6\u548c\u89e3\u5bc6\u7b97\u6cd5\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\uff0c\u7136\u540e\u8fdb\u884c\u5404\u79cd\u6570\u5b66\u64cd\u4f5c\u3002\u901a\u8fc7\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def string_to_ascii(s):<\/p>\n<p>    return [ord(char) for char in s]<\/p>\n<p>string = &quot;Hello&quot;<\/p>\n<p>ascii_values = string_to_ascii(string)<\/p>\n<p>print(ascii_values)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>string_to_ascii<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684ASCII\u7801\u503c\u5217\u8868\uff0c\u7136\u540e\u6253\u5370\u51fa\u6765\u3002\u5b57\u7b26&#39;H&#39;\u7684ASCII\u7801\u503c\u662f72\uff0c\u5b57\u7b26&#39;e&#39;\u7684ASCII\u7801\u503c\u662f101\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002\u8fd9\u4e2a\u7b80\u5355\u7684\u51fd\u6570\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u6765\u5904\u7406\u6574\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001<code>ord()<\/code>\u51fd\u6570\u7684\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6587\u672c\u52a0\u5bc6<\/strong>\uff1a<\/p>\n<p>\u5728\u6587\u672c\u52a0\u5bc6\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\uff0c\u7136\u540e\u8fdb\u884c\u5404\u79cd\u6570\u5b66\u64cd\u4f5c\u3002<code>ord()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b57\u7b26\u7edf\u8ba1<\/strong>\uff1a<\/p>\n<p>\u5728\u5b57\u7b26\u7edf\u8ba1\u4e2d\uff0c\u9700\u8981\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\uff0c\u7136\u540e\u8fdb\u884c\u7edf\u8ba1\u3002<code>ord()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u672c\u5206\u6790<\/strong>\uff1a<\/p>\n<p>\u5728\u6587\u672c\u5206\u6790\u4e2d\uff0c\u9700\u8981\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5176\u5bf9\u5e94\u7684\u6574\u6570\u503c\uff0c\u7136\u540e\u8fdb\u884c\u5206\u6790\u3002<code>ord()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u7efc\u5408\u5e94\u7528\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u4e0a\u8ff0\u65b9\u6cd5\u7684\u5e94\u7528\uff0c\u4e0b\u9762\u63d0\u4f9b\u4e00\u4e2a\u7efc\u5408\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u5904\u7406\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import struct<\/p>\n<p>def string_to_binary(s):<\/p>\n<p>    return [bin(ord(char)) for char in s]<\/p>\n<p>def string_to_ascii(s):<\/p>\n<p>    return [ord(char) for char in s]<\/p>\n<p>def string_to_bytearray(s):<\/p>\n<p>    return bytearray(s, &#39;utf-8&#39;)<\/p>\n<p>def string_to_struct(s):<\/p>\n<p>    packed_data = struct.pack(f&#39;{len(s)}s&#39;, s.encode())<\/p>\n<p>    unpacked_data = struct.unpack(f&#39;{len(s)}B&#39;, packed_data)<\/p>\n<p>    return unpacked_data<\/p>\n<p>string = &quot;Hello&quot;<\/p>\n<p>binary_values = string_to_binary(string)<\/p>\n<p>ascii_values = string_to_ascii(string)<\/p>\n<p>byte_array = string_to_bytearray(string)<\/p>\n<p>struct_values = string_to_struct(string)<\/p>\n<p>print(&quot;Binary Values:&quot;, binary_values)<\/p>\n<p>print(&quot;ASCII Values:&quot;, ascii_values)<\/p>\n<p>print(&quot;Byte Array:&quot;, byte_array)<\/p>\n<p>print(&quot;Struct Values:&quot;, struct_values)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u5b57\u7b26\u4e32&quot;Hello&quot;\u88ab\u5206\u522b\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u8868\u793a\u3001ASCII\u7801\u503c\u3001\u5b57\u8282\u6570\u7ec4\u548c\u7ed3\u6784\u4f53\uff0c\u5e76\u6253\u5370\u51fa\u6765\u3002\u8fd9\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u5b57\u7b26\u4e32\uff0c\u5e76\u8f93\u51fa\u5176\u539f\u7801\u663e\u793a\u51fa\u7684\u6570\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u7bc7\u6587\u7ae0\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u5bf9Python\u5982\u4f55\u8f93\u51fa\u4e00\u4e32\u539f\u7801\u663e\u793a\u51fa\u7684\u6570\u6709\u4e86\u6df1\u5165\u7684\u4e86\u89e3\u3002\u65e0\u8bba\u662f\u4f7f\u7528<code>ord()<\/code>\u51fd\u6570\u3001<code>bytearray<\/code>\u5bf9\u8c61\u3001<code>struct<\/code>\u6a21\u5757\u8fd8\u662f<code>bin()<\/code>\u51fd\u6570\uff0c\u90fd\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u539f\u7801\u8868\u793a\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>bin()<\/code>\u51fd\u6570\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u8868\u793a\u3002\u4f8b\u5982\uff0c<code>bin(5)<\/code>\u5c06\u8f93\u51fa<code>&#39;0b101&#39;<\/code>\uff0c\u5176\u4e2d<code>0b<\/code>\u8868\u793a\u8fd9\u662f\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6570\u3002\u5982\u679c\u9700\u8981\u53bb\u6389\u524d\u7f00\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\uff0c<code>bin(5)[2:]<\/code>\u5c06\u8fd4\u56de<code>&#39;101&#39;<\/code>\u3002\u4e0d\u8fc7\uff0c\u539f\u7801\u8868\u793a\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u4f4d\u6570\u8fdb\u884c\u683c\u5f0f\u5316\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u8d1f\u6570\u7684\u539f\u7801\u8868\u793a\uff1f<\/strong><br \/>\u8d1f\u6570\u7684\u539f\u7801\u8868\u793a\u4e0e\u6b63\u6570\u7684\u4e0d\u540c\uff0c\u901a\u5e38\u4f7f\u7528\u6700\u9ad8\u4f4d\u4f5c\u4e3a\u7b26\u53f7\u4f4d\u3002\u5728Python\u4e2d\uff0c\u8d1f\u6570\u7684\u539f\u7801\u53ef\u4ee5\u901a\u8fc7\u5c06\u5176\u7edd\u5bf9\u503c\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\uff0c\u7136\u540e\u5728\u524d\u9762\u52a0\u4e0a\u7b26\u53f7\u4f4d\u3002\u4f8b\u5982\uff0c-5\u7684\u539f\u7801\u57288\u4f4d\u8868\u793a\u4e2d\u4e3a<code>&#39;11000101&#39;<\/code>\uff0c\u5176\u4e2d<code>1<\/code>\u8868\u793a\u8d1f\u6570\uff0c\u540e\u9762\u7684<code>100101<\/code>\u662f\u7edd\u5bf9\u503c5\u7684\u4e8c\u8fdb\u5236\u8868\u793a\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u51fd\u6570\u8f93\u51fa\u7279\u5b9a\u683c\u5f0f\u7684\u539f\u7801\uff1f<\/strong><br \/>\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u8f93\u51fa\u7279\u5b9a\u683c\u5f0f\u7684\u539f\u7801\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u6839\u636e\u8f93\u5165\u7684\u6574\u6570\u548c\u4f4d\u6570\uff0c\u8fd4\u56de\u5bf9\u5e94\u7684\u539f\u7801\u8868\u793a\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">def to_signed_binary(n, bits):\n    if n &lt; 0:\n        n = (1 &lt;&lt; bits) + n\n    return format(n, f&#39;0{bits}b&#39;)\n\nprint(to_signed_binary(-5, 8))  # \u8f93\u51fa\uff1a11111011\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u51fd\u6570\u4f1a\u6839\u636e\u7ed9\u5b9a\u7684\u4f4d\u6570\u6765\u8f93\u51fa\u6574\u6570\u7684\u539f\u7801\uff0c\u65e0\u8bba\u662f\u6b63\u6570\u8fd8\u662f\u8d1f\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8f93\u51fa\u4e00\u4e32\u539f\u7801\u663e\u793a\u51fa\u7684\u6570\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528ord()\u51fd\u6570\u3001\u4f7f\u7528bytearray\u5bf9\u8c61\u3001\u4f7f\u7528struct\u6a21 [&hellip;]","protected":false},"author":3,"featured_media":1137515,"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\/1137506"}],"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=1137506"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137506\/revisions"}],"predecessor-version":[{"id":1137518,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137506\/revisions\/1137518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1137515"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1137506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1137506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1137506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}