Python报错:'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

python读取文件报错:SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

Python报错:'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape_第1张图片

Python报错:'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape_第2张图片

看到一篇文章说是因为路径中有/u,但是作者通过//u已经解决,也可以直接在路径前加 r


你可能感兴趣的:(Python)