Код: Выделить всё
import os
import tarfile
with tarfile.open('res.tar.gz','w:xz' )as tar :
tar.add('Pic.jpeg')
Как я могу это сделать, пожалуйста?< /п>
Подробнее здесь: https://stackoverflow.com/questions/748 ... ith-python
Код: Выделить всё
import os
import tarfile
with tarfile.open('res.tar.gz','w:xz' )as tar :
tar.add('Pic.jpeg')