属性和方法的解释

A function attached to an object is called a method. (Non-function things attached to an object, such as imag, are called attributes).

--摘自kagglepython课程

#一直不是很清楚属性和方法有啥区别,这个解释简洁清晰。

posted @ 2022-08-09 15:01  bug_no_bully  阅读(18)  评论(0编辑  收藏  举报