escaping

Serhiy Storchaka storchaka at gmail.com
Mon Apr 16 08:03:19 EDT 2012


16.04.12 00:07, Kiuhnm написав(ла):
> path = path.replace('\\', '\\\\')

If you think that it is too complicated:
path = re.sub('\\\\', '\\\\\\\\', path)


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /