66问答网
所有问题
python的input函数的返回值
如题所述
举报该问题
推荐答案 2021-03-13
input函数的
返回值
是你输入的值,即输入1则返回"1",转换成1必须int("1"),也就是说n=int(input("")),值存在n变量里。
input函数参数是提示
字符串
。
input("啊")相当于输出"啊"之后输入。
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://66.wendadaohang.com/zd/px2xv9psUsv9xv29DD.html
相似回答
大家正在搜