AttributeError module os has no attribute path 发表于 2020-11-23 更新于 2021-12-14 写代码时报错:AttributeError: module ‘os’ has no attribute ‘path’ 发现是文件名命名为了os,与模块名相同,改成其他名字就好了 https://www.jianshu.com/p/fde0096c31f3