-1
作为一个更好的定义,如何在Python中编写如下函数?如何使用Python在Ubuntu上创建文件快捷方式?
def create_shortcut(source, dest):
create a shortcut of file 'source' and put it in 'dest'
作为一个更好的定义,如何在Python中编写如下函数?如何使用Python在Ubuntu上创建文件快捷方式?
def create_shortcut(source, dest):
create a shortcut of file 'source' and put it in 'dest'
如果 “捷径” 你的意思是符号链接,它只是
import os
os.symlink(source,dest)
完美。非常感谢。 –