在python 中is和= = 的区别

None,  False, 空字符串"", 0, 空列表[], 空字典{}, 空元组()都相当于False

 

posted @ 2017-06-27 17:38  x.cube  阅读(196)  评论(0编辑  收藏  举报