如何检查列表是否为空? - How do I check if a list is empty?

问题:

This question's answers are a community effort . 这个问题的答案是社区的努力 Edit existing answers to improve this post. 编辑现有答案以改进这篇文章。 It is not currently accepting new answers or interactions. 它目前不接受新的答案或互动。

For example, if passed the following:例如,如果通过以下内容:

a = []

How do I check to see if a is empty?如何检查a是否为空?


解决方案:

参考一: https://en.stackoom.com/question/Dv7参考二: https://stackoom.com/question/Dv7
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章