下列语句的输出结果是: number = 4 while number > 0: for i in range(number): print(i, end='') number -= 1
A. 0123012010
B. 012301201
C. 01230120
D. 0123012
查看答案
下列语句的输出结果是: number = 4 while number > 0: for i in range(number): if i % 2 == 0: print(i, end='') number -= 1
A. 020200
B. 02020
C. 0202
D. 020
下列语句的输出结果是: findChar = 'l' text = 'Hello World' count = 0 for char in text: if findChar == char: count += 1 print(count)
A. 3
B. 2
C. 1
D. 0
for循环中可以使用下列哪些关键字?
A. for
B. while
C. continue
D. break
下列语句的执行结果是10: i = 0 while i < 10: i += 1 print(i)
A. 对
B. 错