含input函数的python程序需要用户输入一部分数据才能使得程序继续运行。 方案1: 在vs code 里找到launch.json文件,把configurations中console的值修改为externalTerminal,再次运行该程序即可正常运行 方案2: 在程序空白处右击,选择run python->run python file in terminal ,该程序即可正常运行!