Answers for "get file name starts with in python"

1

open a filename starting with in python

for file in os.listdir("/Users/darren/Desktop/test"):
    if file.startswith("art"):
        print(file)
Posted by: Guest on April-21-2021

Code answers related to "get file name starts with in python"

Python Answers by Framework

Browse Popular Code Answers by Language