占位符 %s

a = input("Name:")
b = input("Age:")
c = input("Job:")
d = input("hobby:")

info = '''
------------ info of %s -----------
Name : %s
Age : %s
job : %s
hobby: %s

------------- end -----------------
''' % (a,a,b,c,d)

print(info)
posted @ 2018-10-21 17:14  Jack的逆旅  阅读(204)  评论(0编辑  收藏  举报