hi,everyone. a problem with shelve Module
according to the book instruduction , i use shelve Module to write record to file. i only write ten records like this: name sex age jimmale 22 tom male 23 lucy female 21 .others( about ten records) but i find the size of this file .oh my god , it is about 24k the file is too large !is it normal ? i don't dare to think that if i has 1000 records , it will be a very large file! -- http://mail.python.org/mailman/listinfo/python-list
Re: hi,everyone. a problem with shelve Module
really in which case? -- http://mail.python.org/mailman/listinfo/python-list
hi,every body. a problem with PyQt.
i use QT-designer to design application GUI. now i save the test.ui file into e:\test\test.ui next step,how can i run it? -- http://mail.python.org/mailman/listinfo/python-list
Re: hi,every body. a problem with PyQt.
thanks everyone! -- http://mail.python.org/mailman/listinfo/python-list
Re: hi,every body. a problem with PyQt.
but in my computer pyuic is not a valid commond may be i don't install something,but i have installed PyQt4. -- http://mail.python.org/mailman/listinfo/python-list
Re: hi,every body. a problem with PyQt.
i find it now thanks ! -- http://mail.python.org/mailman/listinfo/python-list
Re: FAQ for XML with Python
Thanks! is very usefull for me -- http://mail.python.org/mailman/listinfo/python-list
Re: who can give me the detailed introduction of re modle?
thanks for your advice! :) -- http://mail.python.org/mailman/listinfo/python-list
Re: Getting URL's
it is difficult to get all URL's in a page you can use sgmllib module to parse html files can get the standard href . -- http://mail.python.org/mailman/listinfo/python-list
Re: Script to make Windows XP-readable ZIP file
i am in win2000 z.write(a_path,a_path) may change to z.write(a_path) but the dirpath is not in zipfile who can tell me? -- http://mail.python.org/mailman/listinfo/python-list
Re: Script to make Windows XP-readable ZIP file
my code can work, like below: import os import zipfile z = zipfile.ZipFile(rc:\text.zip,mode=w,compression=zipfile.ZIP_DEFLATED) cwd = os.getcwd() try: for dirpath,dirs,files in os.walk(cwd): for file in files: z_path = os.path.join(dirpath,file) z.write(z_path) z.close() finally: if z: z.close() that is true but the archive include the absolute path . can you give me a way to build it with relative path. -- http://mail.python.org/mailman/listinfo/python-list
Re: Script to make Windows XP-readable ZIP file
aha we want to do it with python don't use ant -- http://mail.python.org/mailman/listinfo/python-list
Re: Script to make Windows XP-readable ZIP file
Carl Banks is right -- http://mail.python.org/mailman/listinfo/python-list
Re: Script to make Windows XP-readable ZIP file
aha now it's right like this: import os import zipfile z = zipfile.ZipFile(rc:\text.zip,mode=w,compression=zipfile.ZIP_DEFLATED) cwd = os.getcwd() try: for dirpath,dirs,files in os.walk(cwd): for file in files: z_path = os.path.join(dirpath,file) start = cwd.rfind(os.sep)+1 z.write(z_path,z_path[start:]) z.close() finally: if z: z.close() -- http://mail.python.org/mailman/listinfo/python-list
Re: Script to make Windows XP-readable ZIP file
import os import zipfile z = zipfile.ZipFile(rc:\text.zip,mode=w,compression=zipfile.ZIP_DEFLATED) cwd = os.getcwd() try: for dirpath,dirs,files in os.walk(cwd): for file in files: z_path = os.path.join(dirpath,file) start = cwd.rfind(os.sep)+1 z.write(z_path,z_path[start:]) z.close() finally: if z: z.close() * can work -- http://mail.python.org/mailman/listinfo/python-list
who can give me the detailed introduction of re modle?
the re module is too large and difficult to study i need a detaild introduction. -- http://mail.python.org/mailman/listinfo/python-list