Python淺拷貝,深拷貝實例

Python淺拷貝,深拷貝實例 通常賦值python >>> ls [0, 1, 2, 3, 4, 5, 6, 7, 8] >>> id(ls) 2099399946056 >>> lt = ls >>> id(lt) 2099399946056 >>> ls == lt True >>> ls is lt True >>> lt.append(9) >>> lt [0, 1, 2, 3, 4,
相關文章
相關標籤/搜索