Django Book 翻译
菜单>:
TOC
返回
原文:
In Python, the empty list (``[]`` ), tuple (``()`` ), dictionary (``{}`` ), string (``''`` ), zero (``0`` ), and the special object ``None`` are ``False`` in a Boolean context. Everything else is ``True`` .
翻译:
在python中空的列表 ( ``[]`` ),tuple( ``()`` ),字典( ``{}`` ),字符串( ``''`` ),零( ``0`` ),还有 ``None`` 对象,在逻辑判断中都为假,其他的情况都为真。
备注:
译者: