os.chdir(os.path.dirname(__file__)) print(os.getcwd()) ... Using pathlib you can get the folder in which the current file is located.
確定! 回上一頁