“Variáveis ​​de impressão em python e corda” Respostas de código

Variáveis ​​de impressão em python e corda

# This prints out "John is 23 years old."
name = "John"
age = 23
print("%s is %d years old." % (name, age))
# note: the letter is based on the datatype. %s = string, %d = decimal
Jealous Joey

Python Print Variable and String

foo = "seven"

print("She lives with " + foo + " small men")
Dark Dolphin

Respostas semelhantes a “Variáveis ​​de impressão em python e corda”

Perguntas semelhantes a “Variáveis ​​de impressão em python e corda”

Mais respostas relacionadas para “Variáveis ​​de impressão em python e corda” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código