TypeError: Memory.__init__() got an unexpected keyword argument 'cachedir'
时间: 2023-11-09 18:40:57 浏览: 136
第十一天 04魔法方法【千锋Python人工智能学院】1
This error occurs when you are trying to initialize a class with an unexpected keyword argument. Specifically, you are trying to pass a 'cachedir' argument to the constructor of a class called Memory, but this argument is not recognized by the class.
To fix this error, you need to check the documentation for the Memory class and see what arguments it expects. If 'cachedir' is not listed as a valid argument, you should remove it from your code. Alternatively, if 'cachedir' is a valid argument, make sure that you are passing it in the correct format and with the correct spelling.
阅读全文