如何从文件夹中获取大于00918.xlsb的所有文件名(例如:01234.xlsb)?
我有一个文件夹,其中数千个文件,从00001.xlsb,00002.xlsb到12428.xlsb(每天增加)。 在python中,要获取我使用的所有列表(Fichier表示文件,用法语):
fichiers = np.array([fichier for fichier in glob.glob("./brut/" + "/*.xlsb")])
我获取所有文件,但我不希望从00001.xlsb到00918.xlsb。 如何在上面写下这样的条件?
I have a folder with thousands of files, from 00001.xlsb, 00002.xlsb to 12428.xlsb (increasing everyday).
In Python, to get the list of all of them I use (fichier means file, in French):
fichiers = np.array([fichier for fichier in glob.glob("./brut/" + "/*.xlsb")])
I get all files but I don't want files from 00001.xlsb to 00918.xlsb
How can I write such a condition in the above?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许是这样:
结果:
Maybe something like that:
Result:
在下面添加另一行:
Add another line below that: