Advertisement
Guest User

Untitled

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