python - input() 接受 2 个位置参数,但给出了 3 个
问题描述
我对 python 3 很陌生。当我尝试运行以下脚本时,我得到了标题中写的未处理的 TypeError:
name = input("Give me your name: ")
print("Your name is " + name)
解决方案
推荐阅读
- r - mac更新后石英设备表现异常 - R mac
- javascript - 如果其他数字是奇数,则返回“偶数”,而“奇数”其他数字是偶数 javascript
- vue.js - Vue - 动态更改默认输入文本值
- bash - 如果行小于固定长度,如何在行中间添加空格?
- windows - 如何通过命令行参数批量执行while循环
- django - Django:如何在 Django 表单字段名称的值中操作数据,例如 form_field[]
- react-native - 如何将两个文本元素包装在同一行中
- regex - 使用正则表达式从 URL 中提取字符串(在数据工作室上)
- python - 如何使用列表迭代地添加带有删除按钮的 qlabels,可以删除它们
- python - Python & Flask 错误使用 Flask-MySQL | 未找到模块错误:没有名为“flask_mysqldb”的模块