python如何实现循环读取文件夹下excel文件名

Python可以使用os模块来实现循环读取文件夹下excel文件名,可以使用os.listdir函数获取文件夹中的文件名,然后用for循环来遍历文件名,判断是否是excel文件,如果是excel文件就读取文件名。

猜你喜欢

转载自blog.csdn.net/weixin_42602241/article/details/129503679
今日推荐