Python 鬼畜异常

1.SystemError: Parent module '' not loaded, cannot perform relative import

模块重名

2.TypeError: Error when calling the metaclass bases

module.__init__() takes at most 2 arguments (3 given)

import了模块而非类,常见于将文件名当做类名import

 

posted @ 2016-11-05 22:37  小天儿  阅读(237)  评论(0)    收藏  举报