for i in range(3):print(i)
A: 123
B: 012
C: 0123
A: 123
B: 012
C: 0123
举一反三
- for(i=0;i<10;i++){console.log(i)};输出的结果是()。 A: 0123 B: 123 C: 012 D: 不输出
- 将300~400不能被3整除的数输出。下列哪段代码正确 A: for i in range (300,401):if i%3==0 continue print i B: for i in range (299,401):print i, if i%3==0 continue print i C: for i in range (300,400):if i%3==0 continue print i D: for i in range (301,401): if i%3==0 continue print i
- 下面代码的运行结果是:for i in range(2):print(i, end='')else:print(0) A: 010 B: 012 C: 0102 D: 01
- for i in range(2): for j in range(3): print(i,j)
- 下面的代码,哪些是输出1,2,3三个数字 ( )。 A: for i in range(3): print(i) print(i+1) B: aList = [0,1,2] for i in aList: print(i+1) C: i = 1 while i < 3: print(i) i+=1 D: for i in range(3): print(i+1)