2022-04-15 12:26:43 +08:00

7 lines
136 B
Python

import os
def check_file_exist(file):
if not os.path.isfile(file):
raise FileNotFoundError("文件不存在:%s" % file)