1. The difference between raw_input() and input() in python2.x and python3.x
1、 In Python2.x, raw_input() and input( ), both functions exist, the difference is
raw_input( )--- treat all input as string and return the string type
input( )-----can only receive "digital" input, has its own characteristics when treating pure digital input, it returns the type of the input number (int, float)
Recommended Posts