path module or is_file() method from the Path class in the pathlib module. os.path.exists() function. from os.path import exists file_exists = exists( ...
確定! 回上一頁