SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX

Open a named PI with absolute path under windows_ The file of digits.txt has an error

Because the resource of the path cannot be found after escape.

To change a \ in the absolute path to\\  

This is the path before the error is reported.

The path that runs successfully after modification.

  Moreover, it can be found that it is not necessary to replace all \ \, replace the front with \ \, and run without changing the back.

Read More: