• 2022-07-02
    python3解释器执行下面的示例代码后,list1的结果是( ):>;>;>; list1 = [1,2,[3,4]]>;>;>; list2 = copy.deepcopy(list1)>;>;>; list2[2] = 'a'>;>;>; list1
    A: [1, 2, ['a', 4]]
    B: [1, 2, 'a']
    C: [1, 2, [3, 4]]
    D: 报错