📌  相关文章
📜  python 检查列表中的任何元素是否不同 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:18.808000             🧑  作者: Mango

代码示例2
List = ['Mon','Mon','Mon','Mon']
// Result from count matches with result from len()
result = List.count(List[0]) == len(List)
if (result):
   print("All the elements are Equal")
else:
   print("Elements are not equal")