[Tutor] path names
justinstraube at charter.net
justinstraube at charter.net
Sun Feb 22 03:42:44 EST 2004
>>> glob.glob('e:/*.avi')
['e:/jupiter2.avi', 'e:/jupiter3.avi', 'e:/jupiter4.avi']
>>> glob.glob('e:\*.avi')
['e:\\jupiter2.avi', 'e:\\jupiter3.avi', 'e:\\jupiter4.avi']
>>>
Can anyone offer a simple explanation as to the differences between
using '/' and '\' in a path name? And any reason to use one over the
other?
Also, what is happening in the second example that the path names have
two slashes rather than one as in the first example?
Thank you
justin
---
More information about the Tutor
mailing list