import locale
def getpreferredencoding(do_setlocale = True):
return "utf-8"
locale.getpreferredencoding = getpreferredencoding
import locale
def getpreferredencoding(do_setlocale = True):
return "utf-8"
locale.getpreferredencoding = getpreferredencoding
本文标题:指定python3的区域首选编码为utf8
本文链接:https://www.haomeiwen.com/subject/nkagbltx.html
网友评论