单项选择题

在Python中,如何检查一个列表是否为空?()

A.len(list)==0
B.list.isEmpty()
C.not list
D.A和C都对

微信扫码免费搜题