尝试将 linux cmd 转换为 python 脚本
Linux 命令:
chmod 777 file1 file1/tmp file2 file2/tmp file3 file3/tmp
Run Code Online (Sandbox Code Playgroud)
我知道,os.chmod(file, 0777)但我不确定如何将它用于上述行。
我正在将 Linux 命令转换为 python 脚本。我将如何执行 Linux 命令“ln -s”
指令:
ln -s /users/me/link_file hello
Run Code Online (Sandbox Code Playgroud)
我想在 python 中将“hello”链接到“link_file”
谢谢!