Sort, time
// Some code
import time
start_time = time.time()
print("{} have pose x= {}, y= {}".format(shape, x, y), end="")
coord.sort(key=lambda x: x[1]) # сортировка массива coord по 2 значению (индекс 1)
print("--- %s seconds ---" % (time.time() - start_time))
Last updated