赞
踩
def boolean_study(): a = None b = '' c = 0 d = {} e = [] f = () if a: print('i am None') elif b: print('i am empty str') elif c: print('i am 0') elif d: print('i am empty obj or empty dic') elif e: print('i am empty array or list') elif f: print('i am empty tuple') else: print('a, b, c, d, e and f is False') boolean_study()
a, b, c, d, e and f is False
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。