Raw Strings (I Think)

Lanny lanny at freshells.ch
Thu Jul 24 11:24:38 EDT 2008


> No, it doesn't. Instead of guessing what the cause might be, please show
> us your code and show us the error message you're getting, so that we can 
> determine what the cause really is.

Ok, sorry. Heres my code:

import glob
import random
import os

songs = glob.glob('C:\###\###\###\*.mp3')
pick = random.choice(songs)
os.system(pick)

And yes, I know there are better ways of randomly selecting
a .mp3 file to play but I don't care. 



-- Posted on news://freenews.netfront.net - Complaints to news at netfront.net --



More information about the Python-list mailing list