我想创建一个临时文件,在其中发布一些内容,上传它,然后希望它自动删除。 在检查该方法是否有效时,我发现该文件为空:其中没有任何内容。 >>> with tempfile.NamedTemporaryFile(suffix='.csv') as temp_certificate_file:
... temp_certificate_file.write(bytes( "managed-graphdb,managed-graphdb-admins,{},{},compute-qus1,kubernetes:config:compute-qus1&