#!/usr/bin/env python
#Zhangpengfei

name = input("name:")
age = input("age:")
job = input("job:")
salary = input("salary:")


info = '''
-----------info of %s ------
Name:%s
Age:%s
job:%s
Salary:%s
'''% (name,name,age,job,salary)
print(info)



info2 = '''
------info of {_name}
Name:{_name}
Age:{_age}
Job:{_job}
Salary:{_salary}
'''.format(_name=name,
_age=age,
_job=job,
_salary=salary
)
print(info2)


info3 = '''
--------info of {0} --------
Name:{0}
Age:{1}
Job:{2}
Salary:{3}

'''.format(name,age,job,salary)

print(info3)
posted on 2018-04-19 19:07  DisCover_ry  阅读(309)  评论(0编辑  收藏  举报