Python脚本报错 (unicode error) 'unicodeescape' codec can't decode bytes in position 33-34: truncated

问题原因:路径格式不对

win7系统解决办法:

1)在路径前边加个'' r ''  如: os.system(r"D:\PythonScript\day03_webdriver01\upload\upfile.exe")

2)单斜杠变双斜杠   如:os.system(r"D:\\PythonScript\\day03_webdriver01\\upload\\upfile.exe")


相关文章:

  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-08-10
  • 2022-01-12
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
相关资源
相似解决方案