====== Python String format ====== * [[https://zerokspot.com/weblog/2015/12/31/new-string-formatting-in-python/|TIL: New String Formatting in Python]] * [[http://docs.python.org/library/string.html|7.1. string — Common string operations]] : "string".format() * [[http://docs.python.org/release/2.5.2/lib/typesseq-strings.html|% String Formatting operation Map 기반]] print '%(language)s has %(#)03d quote types.' % {'language': "Python", "#": 2} # Python has 002 quote types. * [[http://www.informit.com/articles/article.aspx?p=28790&seqNum=2|% String Formatting operation Tuple 기반]] Ross_Info = ("Ross", "he", 28) print("%s is my friend and %s is %s years old" % Ross_Info)