以下关于控制结构的描述,错误的是()。
(A)Python的单分支结构里,包含else语句
(B)Python的多分支结构,指的是既包含else语句块,也包含elif语句块
(C)使用range(1,10)函数,指定语句块的循环次数是9次
(D)Python的for循环结构是对遍历结构各元素进行处理
查看解析
参考答案
继续答题:下一题


更多二级Python试题
- 1为以下程序填空,使得输出结果是{40:yuwen,20:yingyu,30:shuxue}的选项是()。Tb={yingyu:20,shuxue:30,yuwen:40}Stb={}Foritintb.items():Print(it)()()____Print(stb)
- 2以下代码的输出结果是()。Forsin"HelloWorld":Ifs=="W":ContinuePrint(s,end="")
- 3以下程序的输出结果不可能的选项是()。ImportrandomLs=[a,b,c,d]Print(random.sample(ls,2))
- 4以下程序的输出结果是()。Defhub(ss,x=2.0,y=4.0):Ss+=x*ySs=10Print(ss,hub(ss,3))
- 5以下程序的输出结果是()。Defmyf(x=2.0,y=4.0):GlobalspSp+=x*yReturn(sp)Sp=100Print(sp,myf(4,3))
- 6以下关于Python二维数据的描述中,错误的是()。