It simply opens a file for you.
它只是为你打开一个文件。
This code first opens a file, then locks it using file_lock.
代码首先打开一个文件,然后使用file_lock锁定它。
When a process opens a file, it exists on disk even if deleted, as long as the process holds the file open.
当进程打开了某个文件时,只要该进程保持打开该文件,即使将其删除,它依然存在于磁盘中。
应用推荐