8/8/2023 0 Comments Python search for fileOther comparisons you could do are item.lower().endswith('.txt') or some other string comparison. If re.compile('.*lowda.*').search(item): # Here you can do your own comparisonįilename = (curr_dir os.p item)Ĭurr_dir = os.path.abspath(curr_dir os.p os.pardir) # Loop through parent directories until you hit the end or find a match By Saturn Cloud Thursday, Data Science
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |