python报错集合

我们在测试一些功能的时候要注意模块名不能和内置模块名重复,下面的AttributeError就是hashlib的文件名和内置的模块名重复导致的;改掉自己写的.py文件名即可。
AttributeError: partially initialized module 'hashlib' has no attribute 'md5' (most likely due to a circular import)

原文地址:https://www.cnblogs.com/bbdbolg/p/14269171.html