以下程序的输出结果是( )。for s in 'xyab':for i in range(3):if s=='a':breakprint(s,end='')
A. xxxyyy
B. xyxyxy
C. xybxybxyb
D. xxxyyybbb
以下程序的输出结果是( )。for i in range(3):for s in 'xyzabc':if s=='a':breakprint(s,end='')
A. xyzxyzxyz
B. xxxyyyzzzaaa
C. xyzaxyzaxyza
D. xxxyyyzzz
(多选)对若干个正数求和,输入“ok”结束,下面正确的代码是( )。
A. s = 0x = input()while x!="ok":s += int(x)print(s)
B. s = 0while True:x = input()if x=="ok":breaks += int(x)print(s)
C. s = 0x = input()while x!="ok":s += int(x)x = input()print(s)
D. s = 0while x!="ok":x = input()s += int(x)print(s)
(多选)生成[3,9]区间内的随机整数的正确表达是( )。
A. import randomrandom.randint(3,9)
B. range(3,9)
C. import randomrandom.randint(3,10)
D. import randomrandom.randrange(3,10)