该程序的运行结果是____:[br][/br] i = 0[br][/br]while True: [br][/br] i = i +1 [br][/br] if i == 2: [br][/br] print____ [br][/br] continue [br][/br] if i == 5: [br][/br] print____ [br][/br] break [br][/br] print____[br][/br]print____[br][/br]____
举一反三
- 下面程序的运行结果是( )。[br][/br]For i in range(1,5):[br][/br] if (i % 2) == 0:[br][/br] print('*',end='')[br][/br] else:[br][/br] continue[br][/br] print('#',end='') A: **## B: *# C: *#*# D: *
- 下面代码的输出结果是[br][/br]a = [1, 2, 3][br][/br]for i in a[::-1]:[br][/br] print____[br][/br] [br][/br]____ [br][/br] [br][/br]A、
- 读程序题: for i in range(4):[br][/br] if i==3:[br][/br] break[br][/br] print(i ,end="")[br][/br]print(i)
- 执行下述代码:[br][/br]for i in range(5):[br][/br] if i [= 2:<br] i -= 1[br][/br] print(i,end=',')[br][/br] elif i > 2:[br][/br] i += 1[br][/br] print(i,end=',')[br][/br]输出结果为() A: -1,0,1,4,5, B: -1,0,1,4, C: -1,0,4,1,5, D: -1,1,0,5,4,
- 执行下述代码:[br][/br]for i in range(5):[br][/br] if i [= 2:<br] i -= 1[br][/br] print(i,end=',')[br][/br] elif i > 2:[br][/br] i += 1[br][/br] print(i,end=',')[br][/br]输出结果为() A: -1,0,1,4,5, B: -1,0,1,4, C: 1,0,4,1,5, D: -1,1,0,5,4,