Python: method may be static问题
2020-01-06 本文已影响0人
Stack1_e27c
大家在写python代码时,会遇到这样的一个问题
Method 'normalize' may be 'static'
该方法应该是静态方法
解决方法:将self删去,并在函数上方添加上@staticmethod即可
image.png
比较上下图,问题解决
大家在写python代码时,会遇到这样的一个问题
Method 'normalize' may be 'static'