Python_报错:SyntaxError: EOL while scanning string literal
2020-12-13 14:23
                         标签:line   pre   span   字符串   ror   gif   port   lin   class    Python_报错:SyntaxError: EOL while scanning string literal 原因:python中,目录操作时,字符串的最后一个字符是斜杠,会导致出错,去掉\即可 上代码 解决方法:去掉最后的\即可   Python_报错:SyntaxError: EOL while scanning string literal 标签:line   pre   span   字符串   ror   gif   port   lin   class    原文地址:https://www.cnblogs.com/wind-chaser/p/11559925.html
>>> import os
>>> os.chdir(r"e:\")#字符串的最后一个字符是斜杠,会导致出错
  File "

>>> import os
>>> os.chdir(r"e:")
>>>
文章标题:Python_报错:SyntaxError: EOL while scanning string literal
文章链接:http://soscw.com/essay/34033.html