Raw Strings with Variables
WilsonOfCanada
wwn1 at sfu.ca
Tue Aug 18 20:09:29 EDT 2009
You're right, but the moment I append it onto a list, it would become
C:\\moo.
arrPlaces = []
intPoint =0
while (len(testline)):
testline = fileName.readline()
print testline
arrPlaces[intPoint].append(testline)
intPoint += 1
print arrPlaces
> C:\moo
> C:\supermoo
> ['C:\\moo', 'C:\\supermoo']
Is there a way to stop that when appending to the dictionary?
Thanks
More information about the Python-list
mailing list