题目内容

运行下列语句,输入5,运行结果是: number = int(input("请输入一个整数:")) for i in range(number): if i % 2 == 0: print(i, end='')

A. 0
B. 02
C. 024
D. 0246

查看答案
更多问题

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

答案查题题库