if not a: print “List is empty”
用隐藏的空列表的布尔值才是最Pythonic的方法.
Required fields are marked *
显示名称 *
邮箱 *
网站
Δ
← Python三元运算符
Python切片 →
回复