NameError : “name '方法名' is not defined

这个问题解决的关键不在于方法的先后顺序,而在于在第一个def test方法中,调用sing()的时候要使用self

当然我这个问题算是个例,还有一些通用的情况是三方包没导入,还有方法名变了 and so on


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2021-06-30
  • 2021-06-21
  • 2021-08-26
  • 2021-09-24
  • 2021-10-14
相关资源
相似解决方案