韦德国际bv1946_www.bv1946com_韦德国际1946手机版
做最好的网站

What's True in Python

日期:2019-06-20编辑作者:韦德国际bv1946计算机
#      0 is false; all other numbers are true.

#      An empty string ('') is false, all other strings are true.

#      An empty list ([]) is false; all other lists are true.

#      An empty tuple (()) is false; all other tuples are true.

#      An empty dictionary ({}) is false; all other dictionaries are true.

本文由韦德国际bv1946手机版发布于韦德国际bv1946计算机,转载请注明出处:What's True in Python

关键词: Python Data Type