code: def get_uudd(lenth):
      '''
      随机获取给定位数的整数
      '''
      sel_arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
      rarr = random.sample(sel_arr, lenth)
      while rarr[0] == '0':
          rarr = random.sample(sel_arr, lenth)
      return int(''.join(rarr)f get_uudd(lenth):
      '''
      随机获取给定位数的整数
      '''
      sel_arr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
      rarr = random.sample(sel_arr, lenth)
      while rarr[0] == '0':
          rarr = random.sample(sel_arr, lenth)
      return int(''.join(rarr))
docs: 随机获取给定位数的整数