python-CSD-kursu/python-temel/f.write.b.py

3 lines
65 B
Python

with open('binary.dat', 'wb') as f:
f.write(b'\x10\x12\x13')