>>> info = "My job is %s, My name is %s" % ("IT", "nock")
>>> info
'My job is IT, My name is nock'
>>..., I am {} years old, Job is {}".format(*("nock", 18, "IT"))
>>> info
'My name is: nock, I am 18 years...1} years old, Job is {2}".format(*["nock", 18, "IT"])
>>> info
'My name is: nock, I am 18 years old,...: nock, I am 18 years old, Job is DevOps'
制定参数类型
>>> info = "I am {:s}, age {:d}".format(*("nock", 18...))
>>> info
'I am nock, age 18'
>>>
>>> info = "I am {:s}, age {:d}".format(*["nock", 18])
>>> info
'