python forward and bachward seperators

Solutions on MaxInterview for python forward and bachward seperators by the best coders in the world

showing results for - "python forward and bachward seperators"
Claudia
08 Nov 2018
1s.replace('\\', '/')
Mathilda
15 Jun 2020
1import os
2
3path = "C:\\temp\myFolder\example\\"
4
5newPath = path.replace(os.sep, '/')
6
7print newPath
8
9
10Output:<< C:/temp/myFolder/example/  >>
Elora
26 Jan 2019
1posixpath.join(*s.split('\\'))
Silvia
01 Sep 2018
1os.path.join(*s.split('\\'))
similar questions
queries leading to this page
python forward and bachward seperators