📌  相关文章
📜  python如何检查列表中的所有元素是否相同 - TypeScript代码示例

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

代码示例1
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")