###### tags: `求生指引` # jupyterhub 解壓縮檔案 1. jupyternotebook 解壓縮zip * pip install zipfile36 ```.py import zipfile f = zipfile.ZipFile("./fle.zip",'r') # 原壓縮文件在服務器的位置 for file in f.namelist(): f.extract(file,"./") #解壓到的位置,./表示當前目錄(與此.ipynb文件同一個目錄) f.close() ``` 2. jupyternotebook 解壓縮rar * pip install pyunpack * sudo apt install unrar ```py from pyunpack import Archive Archive('file.rar').extractall('./') ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up