TypeError: write() argument must be str, not bytes报错原因及Python3写入二进制文件方法

NoSuchKey