第12249题 单选
哪个命令可以删除给定Python列表的最后一个元素'shenzhen'

已知Python列表:

cities = ['beijing', 'shanghai', 'guangzhou', 'shenzhen']

以下哪个命令可以删除该列表的最后一个元素'shenzhen'?

A
cities.del()
B
cities.pop()
C
cities.remove()
D
cities.pop(4)