题目内容

执行以下程序,输入ab,然后回车,结果是__________。k=10whileTrue:s=input('请输入q退出:')ifs=='a':k+=1continueelse:k+=2breakprint(k)

A. 12
B. 10
C. 13
D. 请输入q退出:

查看答案
更多问题

下面代码的输出结果是__________。letter=['A','B','C','D','D','D']foriinletter:ifi=='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']

不能使下面代码结束的是__________。whileTrue:inp=eval(input("请输入一个数值:"))ifinp//3:break

A. 2
B. 3
C. 4
D. 5

下面代码的输出结果是__________。foriin"football":ifi=="t":continueprint(i,end="")

A. 无输出
B. ll
C. footba
D. fooball

下面代码的输出结果是__________。foriin"PYTHON":forkinrange(2):print(i,end="")ifi=='H':break

A. PPYYTTHHOONN
B. PPYYTTOONN
C. PPYYTTHOONN
D. PPYYTTH

答案查题题库