Как изменить высоту UIAlertController?

def weighted_choice(choices):
   total = sum(w for c, w in choices)
   r = random.uniform(0, total)
   upto = 0
   for c, w in choices:
      if upto + w >= r:
         return c
      upto += w
   assert False, "Shouldn't get here"
13
задан szuniverse 29 July 2014 в 15:56
поделиться