试题 试卷
题型:单选题 题类: 难易度:普通
浙江省嘉兴市海盐县2023-2024学年高二上学期信息技术10月阶段测试卷
s="Good-Luck-2023!"
n=0;m=0;k=0
for i in range(len(s)):
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
s=Text1.Text
n=Len(s) 's是待判断的字符串
k=0: j=n
For i=1 to n\2
c1=Mid(s, i, 1)
c2=Mid(s, j, 1)
If c1 <> c2 Then k = k+1: Exit For
j={#blank#}1{#/blank#}
Next i
If{#blank#}2{#/blank#} Then Label1.Caption="对称" Else Label1.Caption="不对称"
d=2
t=3
if t>=1 and t<=5:
d=d*(1+t)
d=d*t
k=1; lmax=1; n=len(d)
for I in range(1, n):
if d[i]>d[i-1]:
k+=1
if k>lmax:
lmax=k
k=1
print(lmax)
该程序段在某些情况下无法得到符合题意的结果,下列4组数据中能测试出这一问题的是( )
for i in :
print("*", end="")
s = ['12','22','23','31','123','224']
res =s[0]
for i in range(1,len(s)):
if s[i] >= res:
res =s[i]
print(res)
执行上述程序后,输出的结果是( )
试题篮