下列程序段的输出结果是___________。for i in range(5):if i%2 == 0:print(i)else:print(i)
举一反三
- 下面代码的运行结果是: for i in range(2): print(i, end=') else: print(0)
- 运行以下程序输出的结果是:( )。for i in range(6):if i%2==0:continueelif i%3:print(i,end=' ')else: print('end') A: 1 B: 1 end C: 1 5 end D: 1 5
- 下列程序段的输出结果是_______。 i = 1 while i<=3: print("yes") i += 1 else: print("no")
- 下列程序的执行结果是 for i in range(2): print(i,end=) for i in range(4,6): print(i,end=)
- for i in range(4): if i%2==0: print(i) break print(i) 结果是