Difference between raw_input and input

raw_input() reads the console's input directly (any type of input it can receive). And for input(), it expects to be able to read a valid python expression, i.e. you must enclose the string in quotes when you enter it, otherwise it will raise a SyntaxError like NameError

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325365648&siteId=291194637