• 2022-06-07 问题

    使用while 语句实现打印出1至10.count = 1while ( ) print (count) count = count + 1 A: count B: True C: count D: count

    使用while 语句实现打印出1至10.count = 1while ( ) print (count) count = count + 1 A: count B: True C: count D: count

  • 2022-06-07 问题

    使用while 语句实现打印出1至10.count = 1while ( ) print (count) count = count + 1 if i>10 : break A: 1 : B: True : C: True D: 0

    使用while 语句实现打印出1至10.count = 1while ( ) print (count) count = count + 1 if i>10 : break A: 1 : B: True : C: True D: 0

  • 2022-07-25 问题

    使用 while 循环实现输出 1 2 3 4 5 7 8 9 11 12,请补充程序i = 1while i <13: if i == 6 or i == 10: i=i+1 ________ __ else: print(i,end=' ') i = i+1

    使用 while 循环实现输出 1 2 3 4 5 7 8 9 11 12,请补充程序i = 1while i <13: if i == 6 or i == 10: i=i+1 ________ __ else: print(i,end=' ') i = i+1

  • 2022-05-28 问题

    i=1while i<;10: if i%2==0: breakprint(i)结果是: A: 1 B: 2 C: 10 D: 9

    i=1while i<;10: if i%2==0: breakprint(i)结果是: A: 1 B: 2 C: 10 D: 9

  • 2022-06-12 问题

    代码运行后,x的值为( )x = 1while x &lt; 3: x += 1else: x = 1 A: 3 B: 2 C: 1 D: 4

    代码运行后,x的值为( )x = 1while x &lt; 3: x += 1else: x = 1 A: 3 B: 2 C: 1 D: 4

  • 2022-05-31 问题

    运行下列代码段,输出结果中包含1的是( )。 A: while True:print(1) B: while False:print(1) C: while 1:print(1) D: while 0:print(1)

    运行下列代码段,输出结果中包含1的是( )。 A: while True:print(1) B: while False:print(1) C: while 1:print(1) D: while 0:print(1)

  • 2022-06-01 问题

    语句while(!e) ; 与语句( )等价。 A: while(e!=1) B: while(e==1) C: while(e!=0) D: while(e==0)

    语句while(!e) ; 与语句( )等价。 A: while(e!=1) B: while(e==1) C: while(e!=0) D: while(e==0)

  • 2022-06-09 问题

    下面代码的输出结果是 s = 1while(s&lt;=1): print('计数:',s) s = s + 1 A: 计数:0<br/>计数:1 B: 计数:0 C: 计数:1 D: 出错

    下面代码的输出结果是 s = 1while(s&lt;=1): print('计数:',s) s = s + 1 A: 计数:0<br/>计数:1 B: 计数:0 C: 计数:1 D: 出错

  • 2022-05-27 问题

    下列选项中,会出现死循环的是( )。 A: while(1){} B: while(true){} C: while(0){} D: do{}while(1);

    下列选项中,会出现死循环的是( )。 A: while(1){} B: while(true){} C: while(0){} D: do{}while(1);

  • 2022-07-27 问题

    设int m;,与while(!m)等价的是( ) A: while(m!=0) B: while(m==1) C: while(m==0) D: while(m!=1)

    设int m;,与while(!m)等价的是( ) A: while(m!=0) B: while(m==1) C: while(m==0) D: while(m!=1)

  • 1 2 3 4 5 6 7 8 9 10