Python列出一个文件夹下的所有文件tif文件

Python列出一个文件夹下的所有文件tif文件

import os

ans = os.listdir(rootpath)

for item in ans:

​ if item.endwith('.tif'):

​ get

posted @ 2022-09-25 21:54  bH1pJ  阅读(73)  评论(0编辑  收藏  举报