문제

As a better definition, how to write the following function in Python ?

def create_shortcut(source, dest):
    create a shortcut of file 'source' and put it in 'dest'
도움이 되었습니까?

해결책

If by "shortcut" you mean symlink, it's just

import os

os.symlink(source,dest)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top