题目内容
(请给出正确答案)
[多选题]
已知“d=dict(sno='1810100',name='李晓明', age=19)”,下列选项中能够删除键为age的元素的代码是()。
A.del('age')
B.del d['age']
C.pop('age')
D.remove('age')
答案
查看答案
A.del('age')
B.del d['age']
C.pop('age')
D.remove('age')
第1题
A.正确
B.错误
第2题
A.b=a
B.b=a.copy()
C.b=copy.deepcopy(a)
D.b=dict(x=1,y=dict(y1=2,y2=3)
第3题
A、{x=1,y={y1=10,y2=3}}
B、{x=1,y={y1=2,y2=3}}
C、{'x':1,'y':{'y1':10,'y2':3}}
D、{'x':1,'y':{'y1':2,'y2':3}}
第4题
T.对
F.错
第5题
A.create age from ST
B.alterstable ST drop age
C.update ST age
D.alter table ST drop column age