#键盘输入输出name = input('input your name: ')print("姓名:"+name)运行结果: 只需要在输入时加引号,如"yu",就不报错了。 转载于:https://www.cnblogs.com/xiaoyujade/p/11196981.html