How to change the mode of a tempfile after writing to it in Python

后端 未结 0 383
逝去的感伤
逝去的感伤 2021-02-05 23:43

I am using the tempfile Python module to create a temporary file. I need to write to the file, and then I need to change the mode of the file so it is read-only (chmod 400). Is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题