os读取文件夹中的文件名:[a for a in os.listdir(img_dir) if a[0]!='.'] 中的 if a[0]!='.'

NoSuchKey