Answers for "python file to binary"

4

read binary file python

file = open("sample.bin", "rb")
binary_data = file. read()
Posted by: Guest on April-15-2021
0

python read binary

with open("data.bin", "rb") as data:
  byte = data.read()

print(byte)
Posted by: Guest on May-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language