定义alist=[1,2,3],则执行如下语句alist*=3后,alist的值为
举一反三
- 已知 alist= [3, 5, 7],那么执行语句 alist[len()-1:] += [1, 2]之后,alist的值为____。() A: [3, 5, 7, 1, 2] B: [1,2] C: [3,5,1,2,] D: [3,5,1,2,7]
- 已知alist = [ 3, "a1"],那么alist * 3的值是____________________。
- a=[3] alist=[1,2,3,4,5] print(a in alist) 上述代码的运行结果是()
- 执行如下代码的输出结果是( )。aList = [1,5,3,9]aList.sort()print(aList) A: aList B: [1,3,5,9] C: [9,5,3,1] D: [9531]
- alist=[23,43,67,23,98],将alist倒序排序,语句是: A: