In Ruby it was written like "% s "%" str ", but in python it was a little different
"% s "%" str "
print "{0}, {1}".format("abc", "def")
Personally, I liked the % notation, but it seems that using this is the de facto standard.
%
Recommended Posts