返回信息流如图 f m p 这些小圈是啥啥意思?
这是一条镜像帖。来源:北邮人论坛 / python / #20880同步于 2018/1/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖
求问pycharm里面的圆圈
MzxWs
2018/1/19镜像同步4 回复
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
表示类型吧,f是function, m是method,p可能是property吧
【 在 MzxWs (MW) 的大作中提到: 】
: 如图 f m p 这些小圈是啥啥意思?
: --
function和method没啥区别吧。。貌似f代表field[ema13]
【 在 intmain (那又怎样) 的大作中提到: 】
: 表示类型吧,f是function, m是method,p可能是property吧
function是由类提供的,method是对对象的操作(我猜的)
简单理解一个是类方法,一个是对象方法?
【 在 krf573 的大作中提到: 】
: function和method没啥区别吧。。貌似f代表field
特意查了一下,明白了。
函数function —— A series of statements which returns some value to a caller. It can also be passed zero or more arguments which may be used in the execution of the body.
方法method —— A function which is defined inside a class body. If called as an attribute of an instance of that class, the method will get the instance object as its first argument (which is usually called self).
【 在 chinapds (伺机跑路) 的大作中提到: 】
: function是由类提供的,method是对对象的操作(我猜的)
: 简单理解一个是类方法,一个是对象方法?