from pathlib import Path with set_directory(Path(". ... origin = Path().absolute() try: os.chdir(path) yield finally: os.chdir(origin).
確定! 回上一頁