summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorHarukawa Sayaka <bbleae@outlook.com>2022-01-02 20:04:14 +0800
committerGitHub <noreply@github.com>2022-01-02 20:04:14 +0800
commit93af05dc0434c05e99c11547c9f03716529d3246 (patch)
tree4e001fc942a7610c0fb7944cb4998a83c2fbf902 /zh-cn
parentfd3b5cf62961c15f59acb63dad86865fc01ecb78 (diff)
[python/zh-cn] Empty tuple is also False (#4297)
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/python-cn.html.markdown3
1 files changed, 2 insertions, 1 deletions
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
####################################################