Unpickling a class raises attribute error

后端 未结 0 691
野的像风
野的像风 2021-01-17 08:27

I wrote a class A in the Class_A.py file

class A():
    def square(self, num):
        return num*num 

Next in pickle_A.py, I saved the class

相关标签:
回答
  • 消灭零回复
提交回复
热议问题