Pregunta de entrevista de Lalamove

how you use SQL/Python to slove a problem? what's the result?