作为一个例子:math.sqrt()被认为是一个函数但是,"Lower".upper()被称为.upper() 方法.
math.sqrt()
"Lower".upper()
.upper()
为什么是math.sqrt功能?点访问不是指示方法吗?
math.sqrt
python function python-2.7 python-3.x
function ×1
python ×1
python-2.7 ×1
python-3.x ×1