我正在使用的API可以返回空[]列表.
[]
以下条件语句未按预期工作:
if myList is not None: #not working pass if myList is not []: #not working pass
什么会奏效?
python list
list ×1
python ×1