我正在尝试运行此代码,但是它不起作用。 google-我看了,但是我没有找到答案,但是我在这里徒劳地看
from skimage import io
photo = io.imread('C:\Users\comp\Desktop\Urban.jpg')
type(photo)
答案应如下: numpy.ndarray
错误:
(unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
答案 0 :(得分:0)
使用双斜杠代替单斜杠
from skimage import io
photo = io.imread('C:\\Users\\comp\\Desktop\\Urban.jpg')
type(photo)