syntaxerror: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in pos

Error reported using the web version of jupyder:

The reason for the error is that \  is an escape character in Python  , and \u means that it is followed by UNICODE encoding, so \User will report an error here. Adding an r (rawstring) in front of the string  can avoid python and regular expression syntax. conflict!

Reason for error:

In Python,  is an escape character, and \u means that it is followed by UNICODE encoding, so \User will report an error here. Adding an r (rawstring) in front of the string  can avoid conflicts between python and regular expression syntax. !

After modification:

Guess you like

Origin blog.csdn.net/unbelievevc/article/details/132868866