Author:Purple Rabbit

name = "purple rabbit"
print("My name is",name)

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

info = '''
--------- info of ''' + name+''' ------------
Name:''' + name +'''
Age:''' + age +'''
Job:''' + job +'''
Salary:''' + salary

print(info)

print("********** 1 **********")

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

print("********** 2 **********")

name = "purple rabbit" # input("name:")
age = 40 # eval(input("age:"))
job = "gg" # input("job:")
salary = 33333 # input("salary:")

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

print("********** 3 **********")

info3 = '''
--------- info of {name} ------------
Name:{name}
Age:{age}
Job:{job}
Salary:{salary}
'''
print(info3)

print("********** 4 **********")

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

print("********** 5 **********")

info5 = '''
--------- info of {0} ------------
Name:{0}
Age:{1}
Job:{2}
Salary:{3}
'''.format(name,age,job,salary)
print(info5)