错误
img_path = raw_input('Input the path and image name:')
执行显示如下:
NameError: name ‘raw_input’ is not defined
原因
raw_input
是2.x版本的输入函数,在3.x版本下会报错,应该用input()
。
错误
img_path = raw_input('Input the path and image name:')
执行显示如下:
NameError: name ‘raw_input’ is not defined
原因
raw_input
是2.x版本的输入函数,在3.x版本下会报错,应该用input()
。