在我尝试使用tkinter“选择我的文件夹”之前,我已经像这样手动地写了glob.glob函数中的目录(它起作用了)。import globfrom itertools import zip_longestfrom tkinter import filedialoglog' filenames = [] # list for all the found filenames
for filepath_
我试图为其中一个CLI脚本提供通配符支持,我正在使用pythons glob模块。为了做一个测试,我尝试了这个:>>> for f in glob.glob('/Users/odin/Desktop/test_folder/*.log'):
..., "--file", type=str, help="Full path to the file to up