Kwissle

My real-time quiz battle game Kwissle.com

Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Photos

Photoalbum, both old and new.

Twitter

Follow me on Twitter

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 
Python

Python UnZipped

http://www.devshed.com/c/a/Python/Python-UnZipped/

11th of March 2004

Zipping and unzipping a file in Python is child-play. It can't get much easier than this. Well, in Windows you can highlight a couple of files and right-click and select from the WinZip menu. Here's how to do it in Python:

 >>> import zipfile
 >>> zip = zipfile.ZipFile('Python.zip', 'w')
 >>> zip.write('file1.txt')
 >>> zip.write('file2.gif')
 >>> zip.close()

Still confused? Read this article for Dev Shed then. The article includes some more advanced uses as well.



Comment

 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.