input() in Python 3

2017-06-09  本文已影响0人  cutelittlePanda

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;
上一篇 下一篇

猜你喜欢

热点阅读