pyinstaller 打包报错: AttributeError: ‘str‘ object has no attribute ‘decode‘

(51条消息) pyinstaller 打包报错: AttributeError: 'str' object has no attribute 'decode'_zhaojiafu666的博客-CSDN博客

if encoding:
    # out = out.decode(encoding)
    if type(out) == type('string'):
        pass
    else:
        out = out.decode(encoding)

你可能感兴趣的:(开发语言)