首页 > 解决方案 > TypeError:“列表”对象不能解释为整数 Python 二进制文件

问题描述

Encoded tuple,seqQ, encoedChar 是数组

a =[encodedTuple, seqY, encodedChar]
print("Compressed file generated as compressed.txt")
output = open("compressed12","w+b")
binary_format = bytearray(a)
output.write(binary_format)
output.close()

标签: pythonbinary

解决方案


推荐阅读