From 93af05dc0434c05e99c11547c9f03716529d3246 Mon Sep 17 00:00:00 2001 From: Harukawa Sayaka Date: Sun, 2 Jan 2022 20:04:14 +0800 Subject: [PATCH] [python/zh-cn] Empty tuple is also False (#4297) --- zh-cn/python-cn.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/python-cn.html.markdown index 6c5556fc..4469443f 100644 --- a/zh-cn/python-cn.html.markdown +++ b/zh-cn/python-cn.html.markdown @@ -129,12 +129,13 @@ None # => None "etc" is None # => False None is None # => True -# None,0,空字符串,空列表,空字典都算是False +# None,0,空字符串,空列表,空字典,空元组都算是False # 所有其他值都是True bool(0) # => False bool("") # => False bool([]) # => False bool({}) # => False +bool(()) # => False ####################################################