Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import zipfile
- >>> zip_file=zipfile.ZipFile("C:\python\python.zip")
- >>> zip_file.extractall("C:\python\2")
- Traceback (most recent call last):
- File "<pyshell#2>", line 1, in <module>
- zip_file.extractall("C:\python\2")
- File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\zipfile.py", line 1594, in extractall
- self._extract_member(zipinfo, path, pwd)
- File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\zipfile.py", line 1640, in _extract_member
- os.makedirs(upperdirs)
- File "C:\Users\user\AppData\Local\Programs\Python\Python37\lib\os.py", line 221, in makedirs
- mkdir(name, mode)
- OSError: [WinError 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: 'C:\\python\x02'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement