美文网首页
input() in Python 3

input() in Python 3

作者: cutelittlePanda | 来源:发表于2017-06-09 19:42 被阅读0次

1. there is no raw_input() in Python 3, it's removed, and renamed into 'input()'

2. eval(input()) is to evalucate the integers inputed from input().

3. input(prompt) to interacte with users, the inputs are considered as strings, and only 1 arguments expected to be in parenthesis.

input() sample code;

相关文章

网友评论

      本文标题:input() in Python 3

      本文链接:https://www.haomeiwen.com/subject/vfvfqxtx.html