以下程序中,while循环的循环次数是:i = 0while i < 10:if i < 1:print(" Python" )continueif i== 5:print( " World!")breaki += 1
A. 10
B. 5
C. 4
D. 死循环,不能确定
查看答案
以下程序的输出结果是:x= 10while x:x -= 1if x % 2:print(x,end = ")else:pass
A. 86420
B. 975311
C. 97531
D. 864200
以下程序的输出结果是:letter=['A','B','C','D','D','D']for i in letter:if i == 'D':letter. remove(i)print( letter)
A. ['A','B','C']
B. ['A','B','C','D','D']
C. ['A','B','C','D','D','D']
D. ['A','B','C','D']
以下程序的输出结果是:for i in reversed( range(7,4,-1)):print(i,end=" ")
A. 7 6 5 4
B. 7 6 5
C. 5 6 7
D. 4 5 6 7
以下程序的输出结果是:for i in "Go ahead bravely!":if i == "b":breakelse:print( i,end=" ")
A. Go ahead ravely!
B. bravely!
C. Go ahead bravely!
D. Go ahead