Python生成随机数 By admin | 2022-01-16 阅读次数: 生成9位随机数num = ''.join(str(i) for i in random.sample(range(0,9),9))