Op dinsdag 25 maart 2014 20:15:27 UTC+1 schreef Joel Goldstick:
> Jean, be aware there is also python tutor list you might like. This is
> sometimes a tough crowd here. Don't be discouraged. It can be a badge of
> honor sometimes
thanks for the suggestions, I already subscribed to the python tu
Op dinsdag 25 maart 2014 20:58:10 UTC+1 schreef Dave Angel:
> Jean Dubois Wrote in message:
> > Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
>
> >> If your instructor wanted you to copy examples, he would have
> >> given you one.
> > please Dave leave that belittling tone behind,
Jean Dubois Wrote in message:
> Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
>> If your instructor wanted you to copy examples, he would have
>> given you one.
> please Dave leave that belittling tone behind, there's no instructor
> whatsoever involved here.
It wasn't my inten
Jean, be aware there is also python tutor list you might like. This is
sometimes a tough crowd here. Don't be discouraged. It can be a badge of
honor sometimes
--
https://mail.python.org/mailman/listinfo/python-list
Op dinsdag 25 maart 2014 15:42:13 UTC+1 schreef Dave Angel:
> Jean Dubois Wrote in message:
> > Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
> >>
> >> py> values = [float(s) for s in data.split()]
> >> py> print values
> >> [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
> >> py>
Op dinsdag 25 maart 2014 17:12:12 UTC+1 schreef Peter Otten:
> Jean Dubois wrote:
> > Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
> >> On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
> >>
> >> > I'm confused by the behaviour of the following python-script I wrote:
> >> >
On 3/25/14 9:42 AM, Dave Angel wrote:
All I need is a little python-example reading a file with e.g. three lines
with three numbers per line and putting those numbers as floats in a
3x3-numpy_array, then selecting an element from that numpy_array using
it's row and column-number.
If your instr
Jean Dubois wrote:
> Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
>> On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
>>
>> > I'm confused by the behaviour of the following python-script I wrote:
>> >
>> > #!/usr/bin/env python
>> > #I first made a data file 'test.dat' w
On Tue, 25 Mar 2014 06:47:23 -0700, Jean Dubois wrote:
[...]
> Thanks for answering my question but unfortunately now I'm totally
> confused.
> Above I see parts from different programs which I can't assemble
> together to one working program (I really tried hard). Can I tell from
> your comment I
Jean Dubois Wrote in message:
> Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
>>
>> py> values = [float(s) for s in data.split()]
>> py> print values
>> [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
>> py> array_lines = np.array(values)
>> py> array_lines = array_lines.reshape
Op dinsdag 25 maart 2014 12:01:37 UTC+1 schreef Steven D'Aprano:
> On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
>
> > I'm confused by the behaviour of the following python-script I wrote:
> >
> > #!/usr/bin/env python
> > #I first made a data file 'test.dat' with the following content
>
On Tue, 25 Mar 2014 03:26:26 -0700, Jean Dubois wrote:
> I'm confused by the behaviour of the following python-script I wrote:
>
> #!/usr/bin/env python
> #I first made a data file 'test.dat' with the following content
> #1.0 2 3
> #4 5 6.0
> #7 8 9
> import numpy as np
> lines=[line.strip() for
I'm confused by the behaviour of the following python-script I wrote:
#!/usr/bin/env python
#I first made a data file 'test.dat' with the following content
#1.0 2 3
#4 5 6.0
#7 8 9
import numpy as np
lines=[line.strip() for line in open('test.dat')]
#convert lines-list to numpy-array
array_lines=n
13 matches
Mail list logo