[Python] Function, Method; params, args, attrs

func (Function) 函式

def function():
  ...

params(Parameters) 參數 := 定義函式時所需變數

args (Arguments) 引數 := 呼叫函式時引入之變數

Class

Method 方法 := Class 的成員函式

class c:
  def method():
    ...

attrs (Attributes) 屬性 := Class 的成員變數

Last Updated on 2026/01/21 by A1go

目錄
Bitnami