(单选题, )给出如下代码:
Import random as ran
ListV = []
Ran.seed(100)
For i in range(10):
i = ran.randint(100,999)
listV.append(i)
以下选项中能输出随机列表元素最大值的是( )
A.print(listV.max()) B.print(listV.reverse(i)) C.print(listV.pop(i)) D.print(max(listV))正确答案D
(单选题, )给出如下代码:
Import random as ran
ListV = []
Ran.seed(100)
For i in range(10):
i = ran.randint(100,999)
listV.append(i)
以下选项中能输出随机列表元素最大值的是( )
A.print(listV.max()) B.print(listV.reverse(i)) C.print(listV.pop(i)) D.print(max(listV))正确答案D