返回顶部

收藏

List equivalent?, same object?

更多
L1 = [1, ('a', 3)]         # same value, unique objects
L2 = [1, ('a', 3)]
print L1 == L2, L1 is L2         # equivalent?, same object?

标签:Python,List

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-04-23 10:44:43List value assignment and index reference by xwz
  2. 2016-11-18 09:17:16List insert(i, x) by 山药
  3. 2017-03-05 14:32:17List comprehensions: for and tuple by Solon.Ring
  4. 2017-03-24 13:05:53Same Object or identical content by xwz
  5. 2016-01-30 10:54:26Searching a list for an integer. by wubai
  6. 2016-04-23 10:56:47List: display one item through an index by 大猪
  7. 2016-08-21 17:33:40List comprehensions: map and tuple by 蟋蟀MM
  8. 2016-11-09 15:58:09Searching Lists by wubai
  9. 2017-03-05 14:43:55Assignment to slices: Remove some by 山药
  10. 2013-06-05 13:21:25python 使用MySQLdb连接mysql by 玉开Sir
  11. 2014-07-29 20:20:08python从list中删除元素 by 甄码农

发表评论