搜索智能精选 题目编写程序编写程序,生成包含 1000 个 0 到 100 之间的随机整数,并统计每个元素的出现次数。答案import random x =[random.randint(0,100) for i in range(1000)]d = set(x) for v in d:print(v, ':', x.count(v))