执行该部分流程,若依次输入的数据为 2、-3、5、-1、2、1、-3、0,则输出 m 的值为( )
deff(x):
if x==1:
return 2
else:
return f(x- 1)**2
y=f(3)
print(y)
执行该程序段后,输出的结果是( )
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]
tail+= 1
top-= 1
print(que[head:tail])
执行该程序段,则输出的结果是( )
from random import randint
x = randint(2,4)*2
a=[9,2,5, 1,3,4,8,7]
n=len(a)
for i in range(0,n- 1):
k=i
for j in range(i+1,x):
if a[k]>a[j]:
k=j
if i!=k:
a[k],a[i]=a[i],a[k]
print(a)
执行后,输出结果不可能是( )