题目内容

下列语句的输出结果是: 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. 错

下列语句的执行结果是10: i = 0 while i >10: i += 2 print(i)

A. 对
B. 错

答案查题题库