바이너리 형식에서 실제로 1과 0의 문자열을 가져 오는 방법이 있습니까? 파일이 큰 경우1과 0의 문자열을 바이너리 형식으로 표시 Python
# read in image data
fh = open('test.png','rb')
data = fh.read()
fh.close()
# write binary to text file
fh = open('test.txt','w')
fh.write(data)
fh.close
fh.close()
내가 1의에 해당 데이터 문자열을 설정하는 방법을
0의