module ‘os‘ has no attribute ‘listdir‘ ----------------python报错解决 module ‘os’ has no attribute ‘listdir’ 原因是文件名用了os 和模块名一样是不行的