def x():
... print 'C F'
... for i in(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100):
... fahrenheit = (9.0/5.0) * i + 32
... print (`i` + ' ' + `fahrenheit`)
Simple but look OK,
Johan
On Thu, 2005-09-08 at 19:46 -0700, bob wrote:
At 04:34 PM 9/8/2005, [EMAIL PRO
Hi Goofball223,
Just a quick thing -
> for i in (0,10, 20, 30, 40, 50, 60, 70, 80, 90, 100):
Have you used range() before?
for i in range(10):
print i
0
1
2
3
4
5
6
7
8
9
It's handy for situations like yours. Also, you could use it like this -
zeroToNine = range(10)
print zeroToNine
>I would like to construct a table for my program but it does not seem
>to be
> coming out evenly. Could someone please let me know what to do so
> that
> everything will work out correctly?
The best way to build a table is to use a format string with every
field width specified explicitly. Thu
I should already know this, and probably once did, but have never had
a real world use for it until now.
What's a nice, clean way to recursively scan through directories with
an arbitrary number of subdirectories?
In today's example, we're looking to grab the file name and third line
of the file
On Fri, 9 Sep 2005, Rob Andrews wrote:
> I should already know this, and probably once did, but have never had
> a real world use for it until now.
>
> What's a nice, clean way to recursively scan through directories with
> an arbitrary number of subdirectories?
Hi Rob,
You may want to look at
Rob Andrews schrieb:
> I should already know this, and probably once did, but have never had
> a real world use for it until now.
>
> What's a nice, clean way to recursively scan through directories with
> an arbitrary number of subdirectories?
os.walk() is you friend! (Don't use os.path.walk() a
Hi Kent,
Once again, thanks a lot. Problem solved now, your suggestions work
like a charm. You were absolutely right about the last group matching.
I modified my matching pattern:
oRe = re.compile( "(\d\d_\d\d\_)(\d\d(\D|$))" )
Instead of
oRe = re.compile( "(\d\d_\d\d\_)(\d\d)" )
I had no ide
Rob Andrews wrote:
> I should already know this, and probably once did, but have never had
> a real world use for it until now.
>
> What's a nice, clean way to recursively scan through directories with
> an arbitrary number of subdirectories?
Jason Orendorff's path module is awesome for this kind
Hi:
I've been working on this for ages and am having real
problems with getting the wiring for a selected game
to launch when I click OK.
I haven't added my error handling yet.
Can anyone help?
I've tried using spawn, system etc etc to no avail.
#Mame Launcher
#GUI launcher for MAME games
#F
On Fri, 9 Sep 2005, Max Russell wrote:
> I've been working on this for ages and am having real problems with
> getting the wiring for a selected game to launch when I click OK.
>
> I haven't added my error handling yet.
[code cut]
Hi Max,
Hmmm... Out of curiosity, what happens if you try doi
> I've been working on this for ages and am having real
> problems with getting the wiring for a selected game
> to launch when I click OK.
So what problems are you having? Do you get an error trace?
A superficial glance tells me only that
1) You might find using Tix will simplify your code(scroll
11 matches
Mail list logo