Abhinav Gaurav wrote:
> Example :-
> >>> a="43;dsds;d"
b=a.split(';')
> Can anybody help on resolving this issue?
This is what it looks like on my computer:
>>> a="43;dsds;d"
>>> b=a.split(";")
>>> print b
['43', 'dsds', 'd']
This is using Pyt
Danny Yoo wrote:
> If it turns out that this is a good long-term solution, we'll change the
> links on the Tutor mailing list page from ActiveState's searchable archive
> to the one on gmane.
I've been using gmane for a few months now, without any problems.
Dan
__
Hi list,
I'm currently working on a program to parse LaTeX style maths expressions and
provide an answer. For example, I have the expression "2^\frac{1}{2}". I'm
trying to work out a way to split this into it's most basic blocks of LaTeX
(i.e. 2^ and \frac{1}{2}) while maintaining a record of th
Currently, I'm writing a little project which needs to store a
dictionary in an external file (so it can be accessed by another
program). However, no matter how much I try, I cannot get Python to
import the dictionary from the file properly. However, I know the
problem. Whatever format I put the da
> There are four points with coordinates:
> 2,3;4,9;1,6;3,10.
> How to use Python to draw one perpendicular bisector between (2,3) and
> (4,9);
> the other perpendicular bisector between (1,6)和(3,10);
> then, makes the output like:
> l1 a b c
> l2 a b c
> (Note: l indicates the perpendicular
Hey list,
I've been working on my spider program (albeit not very much :P) and I
would appreciate it if I could get some comments on the code. I'm fairly
sure I haven't chosen the best method to do what I want to do, but if we
can just assume that I have, that'll make things easier. ;)
In particul
> Really? I was of the impression that proprietory code developers *ate*
> small children. Goes to show, can't believe everything you read on
> Slashdot.
I heard that they write all their programs using the blood of
cute-looking puppies (though how that doesn't short-circuit anything I'd
like to
> > I've already read before, it's not hacking I'm into now but a
> similar thing, Cracking
Hacking and cracking are two completely different things. Hacking is a
developer with some real talent actually making a contribution to
computing by writing something of use. Cracking is a jackass who's too
Recently, there has been an example of someone importing modules within
a class definition. eg:
class Exemplar:
import re
...use re...
It seems obvious to me that this is incorrect, though more through
training than actual observation on my part, and it should be:
import re
clas
When I am in Python Shell of the IDLE GUI, when I click Edit/Run
Script, I am getting a dialog box that is titled “Not saved” and
states “The buffer for Python shell is not saved. Please save
it first.” With an “OK” button that just takes me back to the
Rosalee Dubberly wrote:
> ## Now I am trying to modify the function to replace eggs with toast
> and spam with jelly. I have spent days and nothing works. Can you send
> me in the right direction??
The obvious answer (that has already been mentioned) is to simply
replace the words in the actual p
On Thu, 2005-09-08 at 21:00 +0100, Alan G wrote:
> Not so. print automatically calls str() on all its arguments so
> the programmer doesn't need to.
So it does. I think I was trying to concatenate, which it doesn't like.
Sorry if I caused any confusion.
Dan
___
On Thu, 2005-09-08 at 15:15 +0100, [EMAIL PROTECTED] wrote:
> for i in range(10):
> principal = principal * (1 + apr)
To calculate compound interest, you in fact don't need to use a loop at
all (you could use: 'final = principal * (apr ** years)') but if you
really want to use a loop,
On Sat, 2005-09-03 at 03:30 +0100, Tom Strickland wrote:
>
> How do I get the output window to stay open, or where is the output
> stored?
You can open up a command prompt before running the program, which will
allow you to see the output as the program runs. You get to this by
'Start > Run..' or
I've run into a bit of trouble with my spider script. Thus far, it is
able to retrieve all of the data off the website that is contained
within standard HTML, downloading jpg, gif and bmp images that are
related to the files (this restriction only being set by a lack of
further definitions by mysel
I'm currently trying to write a script that will get all the files
necessary for a webpage to display correctly, followed by all the
intra-site pages and such forth, in order to try and retrieve one of the
many sites I have got jumbled up on my webspace. After starting the
writing, someone introduc
16 matches
Mail list logo