试题 试卷
题型:单选题 题类: 难易度:容易
新疆伊犁哈萨克自治州霍城县2023-2024学年高一上学期信息技术10月月考试卷
a=[4,5,3, 6, 7,8,2, 9, 1]
m,c=1,1
for i in range(1, len(a)):
if a[i]>=a[i-1]:
c+=1
m=max (m, c)
else:
c=1
print(c,m)
则程序执行后,c和m的值分别是( )
que=[""]*20
head,tail= 0,0
for i in range(3):
que[tail]=chr(97+i)
tail+= 1
st=["b","c","d","a"]
top=3
while head < tail and top > - 1:
if st[top]==que[head]:
head+= 1
else:
que[tail] = st[top]
top-= 1
print(que[head:tail])
执行该程序段,则输出的结果是( )
试题篮