i=1while i<;10: if i%2==0: breakprint(i)结果是: A: 1 B: 2 C: 10 D: 9
i=1while i<;10: if i%2==0: breakprint(i)结果是: A: 1 B: 2 C: 10 D: 9
for i in range(4):if i%2==0:print(i)breakprint(i) A: 00 B: 01 C: 22 D: 02
for i in range(4):if i%2==0:print(i)breakprint(i) A: 00 B: 01 C: 22 D: 02
执行以下程序,输入boss,输出结果是( )。k=0s=input()while True:if s=='b':k+=1continueelse:k+=2breakprint(k) A: 2 B: 4 C: 3 D: 1
执行以下程序,输入boss,输出结果是( )。k=0s=input()while True:if s=='b':k+=1continueelse:k+=2breakprint(k) A: 2 B: 4 C: 3 D: 1
下面代码的输出结果是: ( )for s in 'HelloWorld':if s=='W':breakprint(s,end='')
下面代码的输出结果是: ( )for s in 'HelloWorld':if s=='W':breakprint(s,end='')
执行以下程序,分别输入q、p,输出结果是:______ k = 0while True: s = input('请输入q退出:') If s == 'q': k += 1 continue else: k += 2 breakprint(k)
执行以下程序,分别输入q、p,输出结果是:______ k = 0while True: s = input('请输入q退出:') If s == 'q': k += 1 continue else: k += 2 breakprint(k)
执行以下程序,输入qp,输出结果是:k = 0while True: s = input('请输入q退出:') if s == 'q': k += 1 continue else: k += 2 breakprint(k) A: 2 B: 请输入q退出: C: 3 D: 1
执行以下程序,输入qp,输出结果是:k = 0while True: s = input('请输入q退出:') if s == 'q': k += 1 continue else: k += 2 breakprint(k) A: 2 B: 请输入q退出: C: 3 D: 1
执行以下程序,输入ab,然后回车,结果是()。k= 10while True: s= input(请输入q退出: ) if s== 'a': k+=1 continueelse: k+=2 breakprint(k) A: 13 B: 请输入q退出: C: 12 D: 10
执行以下程序,输入ab,然后回车,结果是()。k= 10while True: s= input(请输入q退出: ) if s== 'a': k+=1 continueelse: k+=2 breakprint(k) A: 13 B: 请输入q退出: C: 12 D: 10
执行以下程序,输入ab,然后按Enter键,输出结果是( ) 。k=10while True:s = input('请输入q退出:')if s == 'a':k +=1continueelse:k +=2breakprint(k) A: 13 B: 请输入q退出: C: 12 D: 10
执行以下程序,输入ab,然后按Enter键,输出结果是( ) 。k=10while True:s = input('请输入q退出:')if s == 'a':k +=1continueelse:k +=2breakprint(k) A: 13 B: 请输入q退出: C: 12 D: 10
下列一段Python代码的运行结果是count = 2while count > 0: print('hello') count = count - 1 breakprint('over') A: hello hello over B: hello over hello over C: hello over D: hello hello over over
下列一段Python代码的运行结果是count = 2while count > 0: print('hello') count = count - 1 breakprint('over') A: hello hello over B: hello over hello over C: hello over D: hello hello over over
输入学生姓名,增加到一个列表st中,直到输入的姓名为空为止,最后输出st。s=[]while True:s=input()if s!="":__________else:breakprint(st) A: s.append(st) B: st.add(s) C: st.insert(s) D: st.append(s)
输入学生姓名,增加到一个列表st中,直到输入的姓名为空为止,最后输出st。s=[]while True:s=input()if s!="":__________else:breakprint(st) A: s.append(st) B: st.add(s) C: st.insert(s) D: st.append(s)