Avatar ·

如何检查列表中的所有元素是否相同?

📁 python

n = int(input())sp = []for _ in range(n):  sp.append(int(input()))

如何检查这个列表中的所有数字是否相同?