{"id":256,"date":"2026-09-17T20:37:53","date_gmt":"2026-09-17T12:37:53","guid":{"rendered":"https:\/\/xiaoxiaoxiaoyu.com\/?p=256"},"modified":"2026-09-17T20:37:53","modified_gmt":"2026-09-17T12:37:53","slug":"python3-11-15%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/xiaoxiaoxiaoyu.com\/?p=256","title":{"rendered":"python3.11.15\u7f16\u8bd1\u5b89\u88c5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">python3.11.15\u7f16\u8bd1\u5b89\u88c5\u4f1a\u9047\u5230utf-8\u7f16\u7801\u9519\u8bef\u95ee\u9898\uff0cpython3.11\u5f15\u5165deepfreeze\u673a\u5236\u5bfc\u81f4\uff0c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcc -pthread -c -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I.\/Include\/internal -I. -I.\/Include -DPy_BUILD_CORE -o Python\/frozen.o Python\/frozen.c Traceback (most recent call last): File &#8220;\/home\/zhito\/.pyenv\/cache\/Python-3.11.15\/.\/Tools\/scripts\/deepfreeze.py&#8221;, line 23, in &lt;module&gt; identifiers, strings = get_identifiers_and_strings() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File &#8220;\/home\/zhito\/.pyenv\/cache\/Python-3.11.15\/Tools\/scripts\/generate_global_objects.py&#8221;, line 294, in get_identifiers_and_strings for name, string, *_ in iter_global_strings(): File &#8220;\/home\/zhito\/.pyenv\/cache\/Python-3.11.15\/Tools\/scripts\/generate_global_objects.py&#8221;, line 117, in iter_global_strings for lno, line in enumerate(infile, 1): File &#8220;\/home\/zhito\/.pyenv\/cache\/Python-3.11.15\/Lib\/codecs.py&#8221;, line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: &#8216;utf-8&#8217; codec can&#8217;t decode byte 0x88 in position 0: invalid start byte<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u5f00Tools\/scripts\/generate_global_objects.py\u6587\u4ef6\uff0c\u5c06iter_global_strings\u51fd\u6570\u4e0b\u7684with open(filename, &#8220;rt&#8221;, encoding=&#8221;utf-8&#8243;,)\u66f4\u6539\u4e3awith open(filename, &#8220;rt&#8221;, encoding=&#8221;utf-8&#8243;, errors=&#8221;replace&#8221;)\uff0c<code>errors='replace'<\/code> \u7684\u4f5c\u7528\uff1a\u9047\u5230\u65e0\u6cd5 utf8 \u89e3\u7801\u7684\u5b57\u8282\uff0c\u76f4\u63a5\u66ff\u6362\u6210\ufffd\u5b57\u7b26\uff0c<strong>\u4e0d\u518d\u629b\u51fa\u5f02\u5e38<\/strong>\uff0c\u811a\u672c\u7ee7\u7eed\u5f80\u4e0b\u8dd1\uff0c\u5c31\u80fd\u987a\u5229\u751f\u6210<code>deepfreeze.c<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"text-justify\">python3.11.15\u7f16\u8bd1\u5b89\u88c5\u4f1a\u9047\u5230utf-8\u7f16\u7801\u9519\u8bef\u95ee\u9898\uff0cpyt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256"}],"version-history":[{"count":1,"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiaoxiaoxiaoyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}