Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 388 Bytes

88 比较两个对象的值(对象中保存的数据)是否相等.md

File metadata and controls

17 lines (10 loc) · 388 Bytes

Python100

把Python知识点整理成100道习题,知识点来自两本书:Python基础教程(第3版)和流畅的Python,以后会定期加入更多的习题,大家帮忙点个赞哈,点赞越多,更新越快~

比较两个对象的值(对象中保存的数据)是否相等

用 == 运算符比较

>>> a = [1, 2, 3]
>>> b = [1, 2, 3]
>>> a==b
True