[英]python: why it says undefined variable when I call function?
You need to call self.getlen(dataSet)
, since you defined the function as a member of the class.您需要调用
self.getlen(dataSet)
,因为您将 function 定义为 class 的成员。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.