Since Python 3 is fairly mainstream, I wanted to include a pathlib answer, ... current_path: Path = Path(__file__).parent.resolve().
確定! 回上一頁