输入并打印个人信息的三种方式:
name = input("name:") age = input('age:') job = input("job:") title = input("title:") info = ''' ---info of %s--- name:%s age:%s job:%s title:%s ''' % (name, name, age, job, title) print(info) info2 = ''' ---info of {_name} name:{_name} age:{_age} job:{_job} title:{_title} '''.format(_name=name, _age=age, _job=job, _title=title) print(info2) info3=''' ---info of {0}--- Name={0} Age={1} Job={2} Title={3} '''.format(name,age,job,title) print(info3)