如何檢查列表是否爲空? - 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章