2024-04-29 01:29:24 发布
网友
我正在写一个脚本,它将从我有完全访问权限的驱动器复制目录。我想知道是否可以在脚本中设置一个参数,以防止脚本的其余部分修改/删除它将要处理的目录。在
比如:
import os import shutils os.preventFromModify() shutil.rmtree("path") # should not be possible
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐