A. for i in range(3): print(i) B. for i in range(2): print(i+1) C. for i in [0,1,2]: print(i+1) D. i = 1;while i < 3: print(i)
A. 5050 B. 4950 C. 450 D. 45
A. 5 B. 6 C. 7 D. 8
A. else语句会在循环执行完成后运行 B. 当count的值等于2时,程序会终止循环 C. break语句会跳过else语句块执行 D. else语句块一定会执行