當物件不再使用時,直譯器會自動垃圾收集(garbage collection) ,釋放記憶體空間。例如上例中, ... __len__()) #檔名:var02.py 於命令列執行以上程式,結果如下$ python3.
確定! 回上一頁