简体   繁体   中英

python: why it says undefined variable when I call function?

在此处输入图像描述

I don't know why the function name has been considered as a variable, how should I solve this?

You need to call self.getlen(dataSet) , since you defined the function as a member of the class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM