deepcopy for the general case. Not all objects can be copied, but most can. 簡易範例: import copy newobj = copy.copy(oldobj) # shallow copy
確定! 回上一頁