PROBLEM SET
题库
按难度与知识点筛选,找到适合的练习题。
题目列表
共 67434 题
A38643
执行以下代码后,其输出是( )。lstA=[(100,90),(85,99),(85,90),(100,85)] lstA.sort(key = lambda x:sum(x)) print(lstA)
Python-L3
中等
--
A38644
以下程序片段中 dictScore 是学生成绩,含有姓名及其对应的两科成绩,要实现按总计成绩升序,应填入代码是( ) dictScore={"张三": (99, 88), "李思": (60, 99), "王武": (70, 70)} sortedData = sorted( ) print(sortedData)
Python-L3
中等
--
A38645
print(reversed([1,5,7,2]))的输出是( )
Python-L3
中等
--
A38646
某算法的流程图如图所示,则该流程图的结构属于?( )
Python-L3
中等
--
A38647
以下代码执行后的输出是( )lstA = [1,2,7,4,5] sorted(lstA, key = lambda x: x%2==0) print(lstA)
Python-L3
中等
--
A38648
以下代码执行后的输出是( )lstA = [1,2,7,4,5] lstA.sort(key = lambda x: x%2==0) print(lstA)
Python-L3
中等
--
A38649
以下Python 代码执行后的输出是( ) poet=["李白","杜甫","王维"] for i,v in enumerate(poet): print(i,v,sep=":",end="#")
Python-L3
中等
--
A38650
Python 表达式 divmod(8,6)的值是( )
Python-L3
中等
--
A38651
有关下面 Python 代码,说法正确的是( )。dictA = {"Apple": "苹果", "Cherry":"车厘子"} dictA["Cherry"] = "樱桃"
Python-L3
中等
--
A38652
有关下面Python 代码说法错误的是( )a=(1,2) a=(a[0]*2,a[1]*2)
Python-L3
中等
--
A38653
Python 表达式[1,2,3]+[4,5,6]的值为( )
Python-L3
中等
--
A38654
表达式[1,3,5,7][::-1]的值是 ( )
Python-L3
中等
--
A38655
在 Python 中,表达式 list(range(5))的值是 ( )
Python-L3
中等
--
A38656
Python 变量 a 的值为 3,下列语句不能输出其二进制的是 ( )
Python-L3
中等
--
A38657
二进制的 1 和八进制的 1 相加,其结果为( )
Python-L3
中等
--
A38658
在 Python 中,表达式 5 % 3 and 5 % 7 的结果 True。( )
Python-L2
较易
--
A38659
在 Python 中,如果 a 为大于 10 的整数,则表达式 a // 10 将去除个位数。( )
Python-L2
较易
--
A38660
在 Python 程序中,某行代码为 print()。当执行该行代码时,将产生分行。( )
Python-L2
较易
--
A38661
如将以下 Python 代码中的 5 > 2 修改为 2 将导致错误,因为 5 > 2 所在位置只能是布尔值 True、关系表达式如 5 > 2 或逻辑表达式如 5 and 2。( )
Python-L2
较易
--
A38662
Python 表达式 str(123) > str(23)的值 True。( )
Python-L2
较易
--