Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在python中,有没有办法检查文件属性以过滤掉windows中的隐藏文件?我知道在 Linux 中,检查前导 '.' 可以做到这一点,但它在 Windows 中不起作用。我想这样做而不必使用 win32 api。代码应该只列出没有隐藏属性的文件/目录。
pathnow = "C:/" for f in os.listdir(pathnow): print f