试题 试卷
题型:综合题 题类: 难易度:困难
浙江省苍南中学2023-2024学年高一下学期信息技术期中考试试卷
n=int(input("请输入要查找的自幂数位数:"))
count=total=0
for i in range(1*10**(n-1),1*10**n):
a=i
while a>0:
total+=
a=a//10
if i==total:
count+=1
print(i)
print(str(n)+"位自幂数一共有"++"个")
For k = 100 To 500
x = k
z = 0
Do while x > 0
Loop
If z= k Then
List1.AddItem Str(k)
End lf
Next k
上述程序段中方框处可选语句为:( )
①x =x\ 10 ②y = x Mod 10 ③z = z+10* y ④z= 10* z + y
则(1)(2)(3)处语句依次为
a=1
b=0
while a<101:
b=b+a
a=a+1
print(b)
q=[""]*50
head=tail=0
s="ningbo'
for i in s:
q[tail]=i
tail+=1
while head<tail:
print(q[head],end="")
head+=1
for i in range(3):
q[tail]=q[head]
执行该程序段后,输出结果为( )
试题篮