How to fix “ DeprecationWarning: invalid escape sequence” in Python?

前端 未结 2 1386
余生分开走
余生分开走 2020-12-30 22:47

I\'m getting lots of warnings like this in Python:

DeprecationWarning: invalid escape sequence \\A
  orcid_regex = \'\\A[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0         


        
2条回答
  •  爱一瞬间的悲伤
    2020-12-30 23:45

    When I changed \ to \\ in the name of the path, Resolved the Invalid escape sequence warning. For your reference please find the attached screenshot below. I was getting this error in pycharm:

提交回复
热议问题