escaping
Serhiy Storchaka
storchaka at gmail.com
Mon Apr 16 08:03:19 EDT 2012
More information about the Python-list mailing list
Mon Apr 16 08:03:19 EDT 2012
- Previous message (by thread): escaping
- Next message (by thread): How to execute/run a *.py file, win7, py3.2..?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
16.04.12 00:07, Kiuhnm написав(ла):
> path = path.replace('\\', '\\\\')
If you think that it is too complicated:
path = re.sub('\\\\', '\\\\\\\\', path)
- Previous message (by thread): escaping
- Next message (by thread): How to execute/run a *.py file, win7, py3.2..?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list