网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

表达式sorted(random.sample(range(5),5))的值为_________________________。


参考答案

更多 “ 表达式sorted(random.sample(range(5),5))的值为_________________________。 ” 相关考题
考题 已知列表x=list(range(5)),那么执行语句x.remove(3)之后,表达式x.index(4)的值为________。

考题 表达式list(range(5))的值为________________。

考题 表达式sum(range(5))的值为()A.9B.10C.11D.12

考题 假设random模块已导入,那么表达式 random.sample(range(10), 7) 的作用是生成7个不重复的整数。

考题 9、已知列表lst1=[8,5,7,2,10],lst2=sorted(lst1),则表达式lst2[-1]的值为:

考题 假设random模块已导入,那么表达式 random.sample(range(20), 30) 的作用是生成30个不重复的整数。

考题 10、执行表达式b,a,c=sorted((3,5,1))后,a的值为:

考题 执行表达式b,a,c=sorted((3,5,1))后,a的值为:

考题 已知列表lst1=[8,5,7,2,10],lst2=sorted(lst1),则表达式lst2[-1]的值为: