gpt4 book ai didi

python - 如何在启用 4 字节 unicode 的情况下重新编译 Python2.7?

转载 作者:太空宇宙 更新时间:2023-11-04 08:07:58 25 4
gpt4 key购买 nike

我已经尝试过 ./configure --enable-unicode./configure --enable-unicode=ucs4 但命令 import sys;打印 sys.maxunicode 仍然是 65535。

我应该如何解决这个问题并在启用 4 字节 unicode 的情况下编译 Python?

最佳答案

从输出

./configure --help

正确的选项是

--enable-unicode=ucs4

关于python - 如何在启用 4 字节 unicode 的情况下重新编译 Python2.7?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27853300/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com