📜  python 保存 base64 临时文件 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:44.847000             🧑  作者: Mango

代码示例1
import tempfile
import subprocess

with tempfile.TemporaryFile(suffix='.exe', delete=False) as tmp:
    tmp.write(EMBEDDED_EXECUTABLE.decode('base64'))
    tmp.close()
    subprocess.Popen(tmp.name)