import random
l=[]
for i in range (100):
l.append (random.randint(0,9))
print('输出A的结果',l)
l.sort()
print('输出排序后的结果',l)
print("加和的结果是",sum(l))
print("最大值是",max(l))
print("最小值是",min(l))
b=tuple(l)
print(b)
print('0的个数',b.count(0))
print('1的个数',b.count(1))
print('2的个数',b.count(2))
print('3的个数',b.count(3))
print('4的个数',b.count(4))
print('5的个数',b.count(5))
print('6的个数',b.count(6))
print('7的个数',b.count(7))
print('8的个数',b.count(8))
print('9的个数',b.count(9))