下面代码中输出结果为0、1、2三个数字的有()。
下面代码中输出结果为0、1、2三个数字的有()。
A.i=3 while i>1: i=i-1 print(3-i)
B.for i in range(3,0,-1): print(3-i)
C.for i in range(3): print(i)
D.i=1while i<3: print(i) i+=1
正确答案:BC
下面代码中输出结果为0、1、2三个数字的有()。
A.i=3 while i>1: i=i-1 print(3-i)
B.for i in range(3,0,-1): print(3-i)
C.for i in range(3): print(i)
D.i=1while i<3: print(i) i+=1
正确答案:BC
热门答案