Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我使用管道运行 python 脚本,则其中的 sys.stdout.encoding 变为 None 并使其崩溃。我怎样才能在不修改脚本的情况下摆脱它?由于某种原因,我无法修改它。