以下代码的输出结果是()。Ls=[]ForminAB:ForninCD:Ls.append(m+n)Print(ls)
(A)ABCD
(B)AABBCCDD
(C)ACADBCBD
(D)['AC','AD','BC','BD']
查看解析
参考答案
继续答题:下一题


更多二级Python试题
- 1为以下程序填空,使得输出结果是{40:yuwen,20:yingyu,30:shuxue}的选项是()。Tb={yingyu:20,shuxue:30,yuwen:40}Stb={}Foritintb.items():Print(it)()()____Print(stb)
- 2键盘输入数字5,以下代码的输出结果是()。Try:N=input("请输入一个整数:")Defpow2(n):Returnn*nExcept:Print("程序执行错误")
- 3以下程序的输出结果是()。Ss=[2,3,6,9,7,1]Foriinss:Print(max(ss),end=,)Ss.remove(max(ss))
- 4对于序列s,能够返回序列s中第i到第j以k为步长的子序列的表达是()。
- 5变量sstr=天使的翅膀带着我在尘世飞翔,执行下列选项,不能输出翅膀的是()。
- 6在Python语言中,使用for..in..方式形成的循环不能遍历的类型是()。