首页->python程序设计
执行代码 x, y, z = sorted([1, 3, 2]) 之后,变量y的值为__。
答:(2)

更多python程序设计试题
- 1python中,a=round(3.45),请计算出a的数值。()。
- 2已知列表 x = [1, 3, 2],那么执行语句 a, b, c = sorted(x) 之后,b的值为__。
- 3编写函数时,一般建议先对参数进行合法性检查,然后再编写正常的功能代码。
- 4以下程序的输出结果是: ls = [“浣熊”,“豪猪”,“艾草松鸡”,“棉尾兔”,“叉角羚”] x = “豪猪” print(ls.index(x,0))、
- 5以下不能创建字典的语句是()。