oslistdir
os.listdir() is a built-in Python function that returns a list of all files and directories in the specified directory. If no directory is specified, it returns the list of files and directories in the current working directory. It takes one argument, which is the path of the directory whose contents are to be listed. The list returned by os.listdir() contains the names of all files and directories in the specified directory, including hidden files and directories (those whose names start with a period). The list is not sorted in any particular order.
原文地址: https://www.cveoy.top/t/topic/bbCy 著作权归作者所有。请勿转载和采集!