.jpg文件在os.path.isfile()函数中判定该为false?
Topic sourcelistdir()只返回文件名,不包含完整路径,你在其他目录下测试isfile('a.jpg')当然是False了
用os.path.isfile(os.path.join(currentpath, filename))
- 1
listdir()只返回文件名,不包含完整路径,你在其他目录下测试isfile('a.jpg')当然是False了
用os.path.isfile(os.path.join(currentpath, filename))
H_ymin
为什么打印出来是False?导致
也无法使用(os.pat.isfile(x)判定为false,打印出来一个空list) 奇怪的是换成本地目录
就可以了
求解!