今天爱分享给大家带来Python中如何判断一个列表为空【面试题详解】,希望能够帮助到大家。
if not a: print "List is empty" #不要用len(a)来判断
原文链接:https://blog.itblood.com/4432.html,转载请注明出处。
今天爱分享给大家带来Python中如何判断一个列表为空【面试题详解】,希望能够帮助到大家。
if not a: print "List is empty" #不要用len(a)来判断