To do it, you can use the exists() function from the os.path module or is_file() method from the Path class in the pathlib module. os.path.exists() function.
確定! 回上一頁