首页 > 其他 > 详细

AttributeError: module 'unittest' has no attribute 'TestCase'

时间:2019-12-11 22:09:53      阅读:656      评论:0      收藏:0      [点我收藏+]

一个自己给自己挖的坑

大家千万不要用库的名称命名,特别是刚刚入门的时候。文件夹、文件,都不要用库的名称。

一旦与库重名,就会出现这种 AttributeError

引以为戒,以后我再这么命名,我就是个大逗B。。。

AttributeError: module 'unittest' has no attribute 'TestCase'

原文:https://www.cnblogs.com/ajiji/p/12025278.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!