Answer the question
In order to leave comments, you need to log in
How to weed out filenames in python?
The task is as follows: there are a number of files with various names. Watch these files there is a file with the symbol "_". In a variable it is necessary to push a name of a file with this character. Judging by what I found on the Internet, the command looks like I indicated below.
import os
name=os.walk("_")
print(name)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question