2016-10-19 4 views

答えて

2

base64 moduleを使用してベース64を戻し、zipfile moduleを使用してジップを変換します。 file.txtを仮定

file.zipにzip圧縮した後、アーカイブ64 encoded.txtような塩基に変換した:次いで解凍し、バイナリに

import zipfile 
import base64 
base64.decode(open('encoded.txt'), open('file.zip', 'w')) 
ZipFile('file.zip').extractall() 
plaintext = open('file.txt').read() 
関連する問題