零碎知识点

is not 与!= 的区别:is判断是否是同一个对象,==判断是否是等价

>>> [] == []
True
>>> [] is []
False






posted @ 2016-08-08 16:03  意发并行  阅读(135)  评论(0编辑  收藏  举报