¡@

Home 

python Programming Glossary: bin_data

How to write individual bits to a text file in python?

http://stackoverflow.com/questions/5205487/how-to-write-individual-bits-to-a-text-file-in-python

system with a different endian default import struct a 824 bin_data struct.pack ' H' 824 print 'bin_data length ' len bin_data with.. import struct a 824 bin_data struct.pack ' H' 824 print 'bin_data length ' len bin_data with open 'data.bin' 'wb' as f f.write.. bin_data struct.pack ' H' 824 print 'bin_data length ' len bin_data with open 'data.bin' 'wb' as f f.write bin_data with open 'data.bin'..