2023年9月CCF-GESP编程能力等级认证Python编程三级真题
一款操作系统
一款应用软件
一种通话设备
以上都不对
60
20
5
1
4A
4B
4C
52
dict类型的key可以是list数据
dict类型的key可以是set数据
dict类型的key可以是dict数据
dict类型的key可以是tuple数据
a = [12, 12]
b = (12, 12)
c = {12, 12}
以上没有不正确
上述代码执行将报错
加号运算符不适用tuple类型
tuple是不可更改类型,不能切片(slice)操作
输出结果是(2, 3, 4, 5)
a = [1, 2] [3, 4]
b = (1, 2) (3, 4)
c = {1, 2} {3, 4}
d = "1, 2" "3, 4"
[],[13, 14]
[13, 14],[]
[13, 14],[13, 14]
[],[]
['1', 'A', 'x']
['1', 'x', 'A']
"1Ax"
"A1x"
[8, 7, 6, 5, 4, -3, 3, -2, 2]
[8, 7, 6, 5, 4, -3, 3, 2, -2]
[2, -2, -3, 3, 4, 5, 6, 7, 8]
[-2, 2, -3, 3, 4, 5, 6, 7, 8]
'P'
'p'
{'P'}
{'p'}
statData[Year] = statData.get(Year) 1
statData[Year] = statData.get(Year, 0) 1
statData[Year] = statData.get(Year, None) 1
statData[Year] = 1
[15]
[5, 10]
[2, 4, 7, 8, 11, 13, 14, 16, 17, 19]
[3, 6, 9, 12, 18]
rst = Alpha[Remainder]
rst = Alpha[Remainder] rst
rst = rst Alpha[Remainder]
rst = str(Remainder) rst
key = random.random
key = lambda x:random.random(x)
key = lambda x:random.random()
key = lambda x:random.random
发表评论 取消回复