试题 试卷
题型:单选题 题类: 难易度:普通
浙江省温州市十校联合体2023-2024学年高二上学期信息技术期中考试试卷
s="0923 Hangzhou Yayunhui"; t=""
for i in range(len(s)):
j=s[i]
if not j>="a" or j>"z":
t=""
t=j+t
print(t)
程序运行后,输出的内容是( )
s=0
For k = 3 To 1 Step -1
If k <= 1 Then x = 1
If k <= 2 Then x = 2
If k <= 3 Then x = 3
s = s + x
Next k
该程序段运行后,变量 s 的值是( )
for i in range(0,10,2):
print(" *" )
s="Good-Luck-2023!"
n=0;m=0;k=0
ch=s[i]
if ch>="0" and ch<="9":
m=m+1
elif ch>="a" and ch<="z":
n=n+1
else:
k=k+1
result=[]
i=0#用于遍历1st1
j=0#用于遍历1st2
while i<len(lst1) and j<len(lst2) :#①
if lst1[i]<lst2[j]:
result.append(lst1[i])
i+=1
result.append(lst2[j])
j+=1
while i<len(lst1):
result.append(lst1[i]) #②
while j<len(lst2):
result.append(lst2[j]) #③
下列说法不正确的是( )
试题篮