在python里,{},[],(),等都等价于False!

if dict:
    print 'not Empty'

标签: python

添加新评论