Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法用 python 脚本锁定文本文件(读写)?或者是否有任何模块或内置功能?在运行脚本时,我希望用户不能打开文本文件并更改里面的内容。仅供参考,我使用的是 Windows XP。
我认为lockfile应该满足您的需求