# -*- coding: utf-8 -*- #python 27 #xiaodeng #python字符串格式化--dict传参 print "I'm %(name)s. I'm %(age)d year old" % {'name':'Vamei', 'age':99} #I'm Vamei. I'm 99 year old