← 查看本卷题目GESP Python 4级2024年9月单选题 第8题 · 2 分执行下面Python代码后,输出的结果是?( ) 1def func(lst):2 lst.append(10)3 return lst4 5lstA = [1,2,3]6 7func(lstA)8print(lstA,func(lstA))填写答案A[1, 2, 3, 10, 10] [1, 2, 3, 10, 10]B[1, 2, 3] [1, 2, 3, 10]C[1, 2, 3, 10] [1, 2, 3, 10]D[1, 2, 3, 10] [1, 2, 3, 10, 10]提交答案详细解析这题不会 ← 上一题 第 28 / 48 题← → 键切题 下一题 →
执行下面Python代码后,输出的结果是?( ) 1def func(lst):2 lst.append(10)3 return lst4 5lstA = [1,2,3]6 7func(lstA)8print(lstA,func(lstA))填写答案A[1, 2, 3, 10, 10] [1, 2, 3, 10, 10]B[1, 2, 3] [1, 2, 3, 10]C[1, 2, 3, 10] [1, 2, 3, 10]D[1, 2, 3, 10] [1, 2, 3, 10, 10]提交答案详细解析这题不会