... 舉例如下 class Demo: def __init__(self): print(locals()) d = Demo() #檔 ... 是判斷是否有某屬性等等的用途,以下為列表說明參數版本功能 delattr(o, n)刪除物件 o.
確定! 回上一頁