大家在写python代码时,会遇到这样的一个问题
Method 'normalize' may be 'static'
该方法应该是静态方法
解决方法:将self删去,并在函数上方添加上@staticmethod即可
image.png
比较上下图,问题解决
大家在写python代码时,会遇到这样的一个问题
Method 'normalize' may be 'static'
本文标题:Python: method may be static问题
本文链接:https://www.haomeiwen.com/subject/agskactx.html
网友评论