python base64怎么解java base64秘钥

2024-11-22 13:35:21
推荐回答(1个)
回答1:

import base64
 
filea = open(r'c:\1.txt','r')   
lines = filea.readlines()
writefile=open(r'c:\2.txt','w')
for i in lines:   
        word = i.strip()
        b = base64.decodestring(word)
        print b
        writefile.write(b)
        writefile.write('\n')
writefile.close()
filea.close()