13 lines
210 B
Python
13 lines
210 B
Python
import codecs
|
|
|
|
with open("./pic.txt", "rb") as f:
|
|
data = f.read().strip()
|
|
|
|
binary_data = codecs.decode(data, 'unicode-escape').encode('latin1')
|
|
|
|
with open("pic.png", "wb") as f:
|
|
f.write(binary_data)
|
|
|
|
|
|
|