一、python2 与 python3 的区别;
【raw_input("name:") == input("name:")】
在python2中不要使用input,在python3中没有raw_input
格式化拼接:3
# Author : 赵书景
name = input ("name:")
age = input ("age:")
job = input ("job:")
salary = input("salary:")
info = '''
---------------------------------info of {_name}------------------------------
Name : {_name}
Age : {_age}
Job : {_job}
Salary : {_salary}
''' .format(_name =name,
_age =age,
_job =job,
_salary =salary)
print(info)