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")
相關文章
相關標籤/搜索