No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Is there an easy way to modify the contents of a zip file inside the archive, without unpacking everything to a temp directory, making the change, then packing it all up again? I've got a whole bunch of zip files, each one with a bunch of plain text files (html, … | |
Re: Lines 11 and 12 put "****" between every single character. Other than this, is the output what you expect? By the way, you may want to look at the BeautifulSoup Python library for working with html files (and extracting text from them). | |
Re: Depending on your operating system, there are a couple of ways. Start with [CODE]import os[/CODE] in your script. If you are on Linux (also Mac [I]I think[/I]) you can do: [CODE]os.system("clear")[/CODE] to clear the terminal screen. If you are on Windows you can do: [CODE]os.system("cls")[/CODE] Note that these probably won't … | |
Re: So it looks like you are writing a function to see if the areas of the pictures are the same? (x is the area of pic, and y is the area of pic1) Simply end your function with [CODE]return(x==y)[/CODE] This will return True or False. | |
What is the procedure in Python for opening a very large binary file in read/write mode, and overwriting individual bytes or sequences of bytes? I'm working with huge files that are many GB, and I would like to seek(arbitrary_long_integer), and overwrite what's there (instead of appending or inserting). I need … | |
Hi All-- I am working with zip archives, using the [URL="http://docs.python.org/library/zipfile.html"]zipfile module[/URL] to extract all the files with certain file extensions from each zip. In these zip archives the files I'm after all have their own path information, but I would like to extract the files I want into one … | |
Re: Yes, this is the problem: TypeError: 'str' object does not support item assignment Make your word a list of single character strings as tonyjv suggests, and you shouldn't have to change any of your other code. | |
I am working on a project where I need to parse a bunch of user text that comes in different fields. The problem is that the user input doesn't always come in on the same fields. One user might have a name in field 3 and a date in field … |
The End.