import os os.chdir(str(path)). 最佳答案. 根据评论,我意识到 pathlib 对更改目录没有帮助,如果可能,应避免更改目录。 由于我需要从正确的目录中调用Python 之外 ...
確定! 回上一頁