import os
if not os.path.exists('./test2/RK06BB8U053117_01_142344_unknown.tiff'): # True/False
print("1") #做判断条件
else:
print('0')
Python 判断文件是否存在
最新推荐文章于 2022-09-05 14:57:26 发布
import os
if not os.path.exists('./test2/RK06BB8U053117_01_142344_unknown.tiff'): # True/False
print("1") #做判断条件
else:
print('0')