name = raw_input('请输入用户名:')#python2.7的用法 name = input('请输入用户名:')#python3.0的用法 print(name) 主要是函数名的变化,2.7用input无法输出字符串并报错。