问题
How to list file names which are only from a particular directory? I don't want file names from sub-directory or anything.
回答1:
os.listdir(dir)
Also see List files in ONLY the current directory
来源:https://stackoverflow.com/questions/37489280/python3-list-files-from-particular-directory