题目内容

使用random库的random()函数,哪个选项的引用方式是错误的?

A. fromrandomimport*
B. fromrandomimportrandom
C. importrandom
D. importrandomfromrandom

查看答案
更多问题

21下面代码的输出结果是 listV=list(range(5)) print(2inlistV)

AFalse
B0
C-1
DTrue

以下不是程序输出结果的选项是: importrandomasr ls1=[12,34,56,78] r.shuffle(ls1) print(ls1)

A. [12,78,56,34]
B. [56,12,78,34]
C. [14,23,57,68]
D. [12,78,34,56]

time库的time.time()函数作用是______。‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪

A. 以字符串形式返回当前系统时间
B. 以数字形式返回当前系统时间
C. 以struct_time形式返回当前系统时间
D. 根据format格式定义返回当前系统时间

以下不属于Python标准时间库的选项是:‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‫‪‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‪‪

A. calender
B. logging
C. time
D. datetime

答案查题题库