~$ pythonPython 2.7.3 (default, Jan 2 2013, 16:53:07) [GCC 4.7.2] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> >>> context = """Here is an example block template:... name: %(name)s... age: %(age)d... job: %(job)s... """>>> >>> print context % dict(name="Tim Wang", age=45, job="C
...全文