题目内容

以下程序的输出结果是()。for i in range(3):print(i,end = ',')

A. 0,1 ,2
B. 0,1,2,
C. 1,2,3
D. 1,2,3,

查看答案
更多问题

以下程序中,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

答案查题题库