返回顶部

收藏

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

发表评论