文本轉二進制

#!/usr/bin/env python import struct infile = open("data","rb") outfile = open("out.txt","wb") def main(): buf=['',''] index=0 line = infile.read(1) while line: if line != '\n': buf[index]=l
相關文章
相關標籤/搜索