以下程序的输出结果不可能的选项是()。import random1s= [2,3,4,6]s= 10k = random.randint(0,2)s += 1s[k]print(s)
查看答案
以下程序输出到文件a.txt里的结果是()。fo = open("a.txt",'w’) x = [春眠:处处:夜来] fo.writelines() fo. close()
A. 春眠处处夜来
B. 春眠处处夜来
C. '春眠"处处"夜来'
D. ‘春眠'‘处处’‘夜来'
以下程序的输出结果是()。L1=[1,2,3,4] L2 = L1. copy() L2.reverse() print(L1)
A. 1,2,3,4
B. [4,3,2, 1]
C. [1,2, 3,4]
D. 4,3,2, 1
以下程序的输出结果是()。 x=4 ca='123456'if str() in ca: print(ca. replac(a([]str(x-2)))
A. 123456
B. 123426
C. 5
D. .2
以下程序的输出结果是() 。Is= [12.44.23.46] for I in 1s: if i= '44': print('found it!i= ',i) break else: print('not found it .’)
A. not found it ...
B. found it!i= '44' not found it ...
C. found it!i= 44
D. found it!i= 44 not found it ...