Hello everyone,
Can anybody help me with this problem.
Ik have a program that i' am modifying.
Ik build a function to export data to a csv file. I tried the functions over
different parts, that needed to be extracted.
The parts on it self worked fine. Now I put all parts in my function. Becaus
Thanks,
adding the self as suggested did the trick.
> To: tutor@python.org
> From: __pete...@web.de
> Date: Thu, 9 Aug 2012 14:45:58 +0200
> Subject: Re: [Tutor] help -Global name is not definied.
>
> leon zaat wrote:
>
> > Hello everyone,
> >
I am trying to fill a file.
When i am start the leading fuction the file schould be overwriting the ,
probarly, existing csv file.
Accoording from keys from different keys in my sql files, information is
collected and written in a other function.
I tried something like this
class BAGExtractP
I wrote a program for creating a csv file.
I am using pyton on windows.
The output i get is not in ANSI.
Is there a way i can get the output in ansi,
I imported locale and tried wb and w as type of writing.
ofile=open(r'D:\bestanden\BAG\adrescoordinaten.csv', 'w(b)')
s and controls. Another MS misnomer is labeling
> UTF-16 as 'Unicode'.
>
> @leon zaat
>
> Process your text with Unicode. Open the file using codecs.open set to
> your platform's preferred encoding, e.g. 'cp1252' for Western,
> 'cp1251' for Cyril
> To: tutor@python.org
> From: __pete...@web.de
> Date: Tue, 14 Aug 2012 16:03:46 +0200
> Subject: Re: [Tutor] output not in ANSI, conversing char set to
> locale.getpreferredencoding()
>
> leon zaat wrote:
>
> > I get the error:
> > UnicodeDecodeErr
If you don't have any prior programmers skills, i would advice first to learn
the basics. You will need a good foundation, before it is possible to create
complex functions.
Starting with complex functions is only frustrating if you don't understand the
basics.
From: cecilia.chavana-bry...@ou
From: tara.nichol...@live.co.uk
To: tutor@python.org
Date: Tue, 20 Nov 2012 14:39:06 +
Subject: [Tutor] (no subject)
Hi, im trying to write a script which randomly generates 10,000 points(x,y) in
the unit square(so range between 0 and 1 for both x and y).so far I have
written the code