标签: python linux file python-3.x filenames
如何列出仅来自特定目录的文件名?我不想要子目录或任何东西的文件名。
答案 0 :(得分:9)
os.listdir(dir)
另见 List files in ONLY the current directory