单项选择题

以下哪个程序不能使s=s+i这句话执行10次()

A.i=0 s=0 while i
B.i=1 s=0 while i
C.i=10 s=0 while i>0: s=s+i i=i-1
D.i=2 s=0 while i

<上一题 目录 下一题>
热门 试题

单项选择题
已知变量s的值是一个字符串,以下能用于判断s这个字符串是否以字符“1”开头,且以字符“0”结尾的表达式为()

A.s[0]=="1" and s[-1]=="0"
B.s[0]=="1" or s[-1]=="0"
C.s[0]="1" or s[-1]="0"
D.s[0]==1 and s[9]==0

单项选择题
以下能用于随机生成一个三位正整数的代码为()

A.import randoma=randint(100,999)
B.import randoma=random.randint(100,999)
C.import randoma=random.randint(100,1000)
D.import randoma=random.randint[100,999]

相关试题
  • 某机床的主轴和润滑油泵各由一只笼型异步电...
  • 试设计一个工作台前进—退回的控制线路。工...
  • 试画出既能使三相异步电动机正、反连续运行...
  • The main idea of the story is tha...
  • When we dream,().