题目内容

如下代码段,不会输出A,B.,C.,的选项是:

A. for i in range(3):print(chr(65+i),end=",")
B. for i in [0,1,2]:print(chr(65+i),end=",")
C. i = 0while i < 3: print(chr(i+65),end= ",") i += 1 continue
D. i = 0while i < 3:print(chr(i+65),end= “,”)breaki += 1

查看答案
更多问题

如下程序的输出结果是:for i in reversed(range(10, 0, -2)):print(i,end=" ")

A. 0 2 4 6 8 10
B. 12345678910
C. 9 8 7 6 5 4 3 2 1 0
D. 2 4 6 8 10

如下程序的输出结果是:for i in "the number changes":if i == 'n':breakelse:print( i, end= "")

A. the umber chages
B. thenumberchanges
C. theumberchages
D. the

如下程序的输出结果是:for i in range(3): for s in "abcd": if s=="c": break print (s,end="")

A. abcabcabc
B. aaabbbccc
C. aaabbb
D. ababab

如下程序的输出结果是:for i in "CHINA": for k in range(2): print(i, end="") if i == 'N': break

A. CCHHIINNAA
B. CCHHIIAA
CCHHIAA
D. CCHHIINAA

答案查题题库