python之字符串格式化
name = input("name:")
age = input("age:")
job = input("job:")
salary = input("salary:")
msg = '''
-----------information of %s------------
name:%s
age:%s
job:%s
salary:%s
----------------end-----------------------
'''%(name,name,age,job,salary)
print(msg)
打印结果: