“Como obter informações para a lista em uma linha em Python” Respostas de código

Como obter informações para a lista em uma linha em Python

# Reads two numbers from input and typecasts them to int using 
# map function 
x, y = map(int, input().split()) 
Clear Camel

Como obter informações para a lista em uma linha em Python

# Reads two numbers from input and typecasts them to int using 
# list comprehension 
x, y = [int(x) for x in input().split()] 
Clear Camel

Respostas semelhantes a “Como obter informações para a lista em uma linha em Python”

Perguntas semelhantes a “Como obter informações para a lista em uma linha em Python”

Mais respostas relacionadas para “Como obter informações para a lista em uma linha em Python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código