# Author:dancheng
Name = input("Name:");
Age = int(input("Age:"));
Job = input("Job:");
Salary = input("Salary:");
info = '''
-------info of %s ------
Name:%s
Age:%d
Job:%s
Salary:%s
''' % (Name, Name, Age, Job, Salary)
info2 = '''
-------info of {_Name} ------
Name:{_Name}
Age:{_Age}
Job:{_Job}
Salary:{_Salary}
'''.format(_Name=Name,
_Age=Age,
_Job=Job,
_Salary=Salary
)
info3 = '''
-------info of {0} ------
Name:{0}
Age:{1}
Job:{2}
Salary:{3}
'''.format(Name, Name, Age, Job, Salary)
print(info3)
效果图: