單項(xiàng)選擇題在Python中,如何刪除列表中的某一項(xiàng)?()

A.list.pop(index)
B.list.remove(value)
C.del list[index]
D.所有以上的選項(xiàng)


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題在Python中,哪個(gè)模塊用于處理JSON數(shù)據(jù)?()

A.json
B.jsonify
C.parsejson
D.jsonlib

2.單項(xiàng)選擇題在Python中,哪個(gè)函數(shù)用于生成隨機(jī)數(shù)?()

A.rand()
B.random()
C.random.randint()
D.randomize()

4.單項(xiàng)選擇題在Python中,如何將多個(gè)字典合并成一個(gè)字典?()

A.dict1+dict2
B.dict1.update(dict2)
C.{**dict1,**dict2}
D.B和C都對

5.多項(xiàng)選擇題在Python中,如何將一個(gè)列表排序?()

A.list.sort()
B.sort(list)
C.list.sorted()
D.sorted(list)