用python格式化输出 2.19/2018

Posted bushii

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用python格式化输出 2.19/2018相关的知识,希望对你有一定的参考价值。

name=input("Name:")
age=input("Age:")
job=input("Job:")
salary=input("Salary:")

msg = ‘‘‘
---------info of %s-------
Name: %s
Age: %s
Job: %s
Salary: %s
-----------end------------
‘‘‘%(name,name,age,job,salary)

print(msg)

  

以上是关于用python格式化输出 2.19/2018的主要内容,如果未能解决你的问题,请参考以下文章