首页 > 解决方案 > input() 接受 2 个位置参数,但给出了 3 个

问题描述

我对 python 3 很陌生。当我尝试运行以下脚本时,我得到了标题中写的未处理的 TypeError:

name = input("Give me your name: ")
print("Your name is " + name)

标签: pythonpython-3.x

解决方案


推荐阅读