python - 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()
解决方案
推荐阅读
- android - android-不能使应用程序多语言
- reactjs - 从 mongoDB、setstate 获取数据并将 props 传递给子组件不起作用
- php - laravel 的控制器内部是否需要 try catch 块?
- c++ - Qt将鼠标位置写入文件
- python - TypeError: 不支持的操作数类型 /: 'float' 和 'Dimension',请使用 // 代替
- google-sheets - 如何仅使用值查询值和过滤数据?
- python - 列表理解中的多个 if 和 for 循环
- python - Gensim LDA 连贯性得分 Nan
- opencv - 涉及到人脸识别和人脸检测问题?
- xpath - 使链接描述指向 IMPORTXML 语句中的链接引用