最佳答案
我使用的 API 可以返回空的 []
列表。
下面的条件语句没有按照预期的方式工作:
if myList is not None: #not working
pass
if myList is not []: #not working
pass
什么有用?