import random a = range(3,100,2) b = random.sample(a, 10) print(b) x=0 for i in b: x += 1 print("整数的个数为:{:.0f}".format(x))