Gibt es ein Python-Äquivalent zur String-Interpolation von Ruby?

Ruby-Beispiel:

name = "Spongebob Squarepants"
puts "Who lives in a Pineapple under the sea? \n#{name}."

Den erfolgreichen Python string-Verkettung ist scheinbar verbose mir.

InformationsquelleAutor der Frage Caste | 2010-12-15

Schreibe einen Kommentar