Hızlı yanıt: kod örneği
Use binary mode() when you're dealing with binary file.BTW, use statement instead of manual .
b
def read_zipfile(path): with open(path, 'rb') as f: return f.read()
with
close