python 随机数生成 python 等概率生成随机数方法 ran_list = ['0','1','2','3','4','5','6','7','8','9'] random.shuffle(ran_list) rst = 'N'+(''.join(list(ran_list[:7])))