python2.7代码在python3.5环境下TypeError: a bytes-like object is required, not 'str'问题
这两天从Github上下载2.7版本程序在3.5版本运行时TypeError:abytes-likeobjectisrequired,not'str'这个错误花了我一天的时间来改找原因,下面将方法总结如下,一句话改动,屡试不爽:报错如下:Traceback(mostrecentcalllast):File"cf_gan.py",line226,inmain()File"cf_gan.py",lin