如下程序的输出结果是: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
如下程序的输出结果是:x= 10while x: x -= 1 if not x%2: print(x,end = '')else: print(x)
A. 86420
B. 975311
C. 97531
D. 864200
如下程序的输出结果是:s=’’ls = [1,2,3,4]for l in ls:s += str(l)print(s)
A. 1,2,3,4
B. 4321
C. 4,3,2,1
D. 1234