题目内容

以下程序的输出结果是()。 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 ...

以下程序的输出结果是()。 s= 10 def run(): global s for i in range(): s+=i return s print(s,run(5))

A. 20 20
B. 10 20
C. 10 10
D. UnboundLocalError

执行以下程序,输出结果是()。 y=[‘’,”] print(all(),any())

A. False True
B. True False
C. False False
D. True True

以下关于随机运算函数库的描述,错误的是()

A. random(a,b)产生- 个a到b之间的随机小数
B. random.seed()函数初始化随机数种子,默认值是当前系统时间
C. random库的随机数是计算机按-定算法产生的,并非完全随机
D. Python内置的random库主要用于产生各种伪随机数序列

答案查题题库