判断列表和元组方法同理:

dict = {'name':'jack'}
dict_2={}
if dict:
    print 'pass'
else:print 'false'
 
if dict_2:
    print 'pass'
else:print 'false'

空为False