python简说(六)判断

非空即真,非0即真
True '1' [1] {k-v}
False '' None [] {}

posted @ 2018-11-27 11:10  狐觞  阅读(86)  评论(0编辑  收藏  举报