如何用python遍历文件夹下的所有excel文件

2025-03-12 22:00:23
推荐回答(1个)
回答1:

import os
for i in os.listdir("."):
if os.path.splitext(i)[1] == ".xlsx":
print i